|
10 | 10 | #
|
11 | 11 | # It's strongly recommended that you check this file into your version control system.
|
12 | 12 |
|
13 |
| -ActiveRecord::Schema[8.0].define(version: 2025_09_12_134432) do |
| 13 | +ActiveRecord::Schema[8.0].define(version: 2025_09_16_074716) 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"
|
|
715 | 715 | t.index ["given_name", "family_name"], name: "index_patients_on_names_given_first"
|
716 | 716 | t.index ["given_name"], name: "index_patients_on_given_name_trigram", opclass: :gin_trgm_ops, using: :gin
|
717 | 717 | t.index ["gp_practice_id"], name: "index_patients_on_gp_practice_id"
|
| 718 | + t.index ["id"], name: "index_patients_on_pending_changes_not_empty", where: "(pending_changes <> '{}'::jsonb)" |
718 | 719 | t.index ["nhs_number"], name: "index_patients_on_nhs_number", unique: true
|
719 | 720 | t.index ["school_id"], name: "index_patients_on_school_id"
|
720 | 721 | end
|
|
1013 | 1014 | t.integer "source", null: false
|
1014 | 1015 | t.index ["batch_id"], name: "index_vaccination_records_on_batch_id"
|
1015 | 1016 | t.index ["discarded_at"], name: "index_vaccination_records_on_discarded_at"
|
| 1017 | + t.index ["id"], name: "index_vaccination_records_on_pending_changes_not_empty", where: "(pending_changes <> '{}'::jsonb)" |
1016 | 1018 | t.index ["location_id"], name: "index_vaccination_records_on_location_id"
|
1017 | 1019 | t.index ["nhs_immunisations_api_id"], name: "index_vaccination_records_on_nhs_immunisations_api_id", unique: true
|
1018 | 1020 | t.index ["patient_id"], name: "index_vaccination_records_on_patient_id"
|
|
0 commit comments