Sha256: 5c89631b11bd43864054750a41209f76b3b3f76c976f9078b0df28c8d31b507a

Contents?: true

Size: 598 Bytes

Versions: 4

Compression:

Stored size: 598 Bytes

Contents

class RemoveFullNameFromInstructor < ActiveRecord::Migration[6.0]
  def change
    change_column :sis_core_courses, :lab_hours, :float, null: true
    remove_column :sis_core_instructors, :full_name, :string
    add_column :sis_core_instructors, :middle_name, :string
    add_column :sis_core_instructors, :gender, :string
    add_column :sis_core_instructors, :first_name, :string
    add_column :sis_core_instructors, :last_name, :string
    add_reference :sis_core_instructors, :user,
                  index: { name: 'user_on_instructor' }, foreign_key: { to_table: :sis_core_users }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sis_core-1.0.20 db/migrate/20201219073245_remove_full_name_from_instructor.rb
sis_core-1.0.19 db/migrate/20201219073245_remove_full_name_from_instructor.rb
sis_core-1.0.18 db/migrate/20201219073245_remove_full_name_from_instructor.rb
sis_core-1.0.17 db/migrate/20201219073245_remove_full_name_from_instructor.rb