Sha256: cd2fee910058026089e715b12d53449808d85d36b5318c4e11392f3c4892df24

Contents?: true

Size: 802 Bytes

Versions: 4

Compression:

Stored size: 802 Bytes

Contents

class AddCourseOfferingToCourseRegistration < ActiveRecord::Migration[6.0]
  def change
    remove_reference :sis_core_course_registrations, :course, index: true
    remove_reference :sis_core_course_registrations, :semester, index: true
    add_column :sis_core_course_registrations, :registered, :boolean, default: false
    add_column :sis_core_course_registrations, :date_registered, :date
    add_column :sis_core_course_registrations, :grade, :string
    add_reference :sis_core_course_registrations, :section,
                  index: { name: 'sec_on_co_reg' }, foreign_key: { to_table: :sis_core_sections }
    add_reference :sis_core_course_registrations, :course_offering,
                  index: { name: 'co_off_on_co_reg' }, foreign_key: { to_table: :sis_core_course_offerings }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sis_core-1.0.20 db/migrate/20201201055256_add_course_offering_to_course_registration.rb
sis_core-1.0.19 db/migrate/20201201055256_add_course_offering_to_course_registration.rb
sis_core-1.0.18 db/migrate/20201201055256_add_course_offering_to_course_registration.rb
sis_core-1.0.17 db/migrate/20201201055256_add_course_offering_to_course_registration.rb