|
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" |
|
627 | 627 | t.index ["given_name", "family_name"], name: "index_patients_on_names_given_first" |
628 | 628 | t.index ["given_name"], name: "index_patients_on_given_name_trigram", opclass: :gin_trgm_ops, using: :gin |
629 | 629 | t.index ["gp_practice_id"], name: "index_patients_on_gp_practice_id" |
| 630 | + t.index ["id"], name: "index_patients_on_pending_changes_not_empty", where: "(pending_changes <> '{}'::jsonb)" |
630 | 631 | t.index ["nhs_number"], name: "index_patients_on_nhs_number", unique: true |
631 | 632 | t.index ["school_id"], name: "index_patients_on_school_id" |
632 | 633 | end |
|
925 | 926 | t.integer "source", null: false |
926 | 927 | t.index ["batch_id"], name: "index_vaccination_records_on_batch_id" |
927 | 928 | t.index ["discarded_at"], name: "index_vaccination_records_on_discarded_at" |
| 929 | + t.index ["id"], name: "index_vaccination_records_on_pending_changes_not_empty", where: "(pending_changes <> '{}'::jsonb)" |
928 | 930 | t.index ["location_id"], name: "index_vaccination_records_on_location_id" |
929 | 931 | t.index ["nhs_immunisations_api_id"], name: "index_vaccination_records_on_nhs_immunisations_api_id", unique: true |
930 | 932 | t.index ["patient_id"], name: "index_vaccination_records_on_patient_id" |
|
0 commit comments