sqm-dashboards/db/migrate/20211119223051_make_school_dese_id_unique.rb
Nelson Jovel ad03606d66 Add benchmarks to survey and admin data items. Remove them from measures. Modify seeder
Calculate benchmarks for measures based on a weighted average of survey
and admin data items

Added architectural records
2021-12-28 14:10:34 +01:00

6 lines
207 B
Ruby

class MakeSchoolDeseIdUnique < ActiveRecord::Migration[6.1]
def change
ActiveRecord::Base.connection.execute('UPDATE schools SET dese_id = id')
add_index :schools, :dese_id, unique: true
end
end