Add migration to make DESE IDs unique, update one-off script accordingly

This commit is contained in:
Liam Morley 2021-11-19 18:06:17 -05:00
parent 293de8698f
commit 1186579d1b
6 changed files with 216 additions and 212 deletions

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_11_18_143017) do
ActiveRecord::Schema.define(version: 2021_11_19_223051) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
@ -280,6 +280,7 @@ ActiveRecord::Schema.define(version: 2021_11_18_143017) do
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.integer "dese_id", null: false
t.index ["dese_id"], name: "index_schools_on_dese_id", unique: true
end
create_table "subcategories", id: :serial, force: :cascade do |t|