20180910210737_add_instructor_key_to_course_sections.rb 327 Bytes
Newer Older
Zac Wood's avatar
Zac Wood committed
1
2
3
4
5
6
7
8
9
10
11
class AddInstructorKeyToCourseSections < ActiveRecord::Migration[5.1]
  def up
    remove_column :course_sections, :instructor
    add_reference :course_sections, :instructor, foreign_key: true
  end

  def down
    remove_reference :course_sections, :instructor
    add_column :course_sections, :instructor, :string
  end
end