From bc963fb1d67635253aa3d53de702d6da67a35791 Mon Sep 17 00:00:00 2001 From: Holden Hinkle Date: Thu, 11 Apr 2024 14:49:25 -0400 Subject: [PATCH] index poa_code --- db/migrate/20240411153910_create_accredited_individuals.rb | 2 +- db/schema.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/db/migrate/20240411153910_create_accredited_individuals.rb b/db/migrate/20240411153910_create_accredited_individuals.rb index 031df1ab5d6..78e6999a888 100644 --- a/db/migrate/20240411153910_create_accredited_individuals.rb +++ b/db/migrate/20240411153910_create_accredited_individuals.rb @@ -5,7 +5,7 @@ def change create_table :accredited_individuals, id: :uuid do |t| t.uuid :ogc_id, null: false t.string :registration_number, null: false - t.string :poa_code, limit: 3 + t.string :poa_code, limit: 3, index: true t.string :individual_type, null: false t.string :first_name t.string :middle_initial diff --git a/db/schema.rb b/db/schema.rb index 876aa259626..a996325aa71 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -86,6 +86,7 @@ t.datetime "updated_at", null: false t.index ["full_name"], name: "index_accredited_individuals_on_full_name" t.index ["location"], name: "index_accredited_individuals_on_location", using: :gist + t.index ["poa_code"], name: "index_accredited_individuals_on_poa_code" t.index ["registration_number", "individual_type"], name: "index_on_reg_num_and_type_for_accredited_individuals", unique: true end