class AddCourseIdToLectures < ActiveRecord::Migration[7.0] def change add_belongs_to(:lectures, :course) end end