You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sqm-dashboards/db/migrate/20211119223051_make_school_...

7 lines
207 B

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