class AddEdfiFieldsToSchoolDays < ActiveRecord::Migration[6.0]
  def change
    change_table :SchoolDays, bulk: true do |t|
      t.references :day_descriptor, type: :integer, after: :SchoolYearID,
        foreign_key: { to_table: :EdFi_Descriptors, primary_key: :DescriptorID }

      t.timestamps null: true
    end
  end
end
