20190210152552_remove_semester_fk_from_course.rb 193 Bytes
Newer Older
1
2
3
4
5
6
class RemoveSemesterFkFromCourse < ActiveRecord::Migration[5.1]
  def change
    remove_column :courses, :semester_id
    add_reference :course_sections, :semester, foreign_key: true
  end
end