|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema[8.1].define(version: 2026_04_20_122440) do |
| 13 | +ActiveRecord::Schema[8.1].define(version: 2026_04_28_080729) do |
14 | 14 | # These are extensions that must be enabled in order to support this database |
15 | 15 | enable_extension "pg_catalog.plpgsql" |
16 | 16 | enable_extension "pg_trgm" |
|
162 | 162 | t.bigint "class_import_id", null: false |
163 | 163 | t.bigint "parent_relationship_id", null: false |
164 | 164 | t.index ["class_import_id", "parent_relationship_id"], name: "idx_on_class_import_id_parent_relationship_id_8225058195", unique: true |
| 165 | + t.index ["parent_relationship_id", "class_import_id"], name: "idx_on_parent_relationship_id_class_import_id_d7c05d6c2c", unique: true |
165 | 166 | end |
166 | 167 |
|
167 | 168 | create_table "class_imports_parents", id: false, force: :cascade do |t| |
|
219 | 220 | t.bigint "cohort_import_id", null: false |
220 | 221 | t.bigint "parent_relationship_id", null: false |
221 | 222 | t.index ["cohort_import_id", "parent_relationship_id"], name: "idx_on_cohort_import_id_parent_relationship_id_c65e20d1f8", unique: true |
| 223 | + t.index ["parent_relationship_id", "cohort_import_id"], name: "idx_on_parent_relationship_id_cohort_import_id_40fb9846d6", unique: true |
222 | 224 | end |
223 | 225 |
|
224 | 226 | create_table "cohort_imports_parents", id: false, force: :cascade do |t| |
|
455 | 457 | t.bigint "immunisation_import_id", null: false |
456 | 458 | t.bigint "vaccination_record_id", null: false |
457 | 459 | t.index ["immunisation_import_id", "vaccination_record_id"], name: "idx_on_immunisation_import_id_vaccination_record_id_588e859772", unique: true |
| 460 | + t.index ["vaccination_record_id", "immunisation_import_id"], name: "idx_on_vaccination_record_id_immunisation_import_id_813c516ad7", unique: true |
458 | 461 | end |
459 | 462 |
|
460 | 463 | create_table "important_notices", force: :cascade do |t| |
|
0 commit comments