sqm-dashboards/db/migrate/20211118143017_add_dese_id_to_school.rb
rebuilt b5badfaef5 Add DESE ID to schools
- Add migration
- Create one-off script `rake one_off:add_dese_ids` to add the DESE ID to schools
- Update seeder to seed schools based on DESE IDs
2021-11-18 16:54:08 -05:00

7 lines
213 B
Ruby

class AddDeseIdToSchool < ActiveRecord::Migration[6.1]
def change
add_column :schools, :dese_id, :integer, default: -1, null: false
change_column_default :schools, :dese_id, from: -1, to: nil
end
end