add index

This commit is contained in:
Pete Matsyburka
2025-11-21 11:45:19 +02:00
parent 89613113de
commit 180c542a9f
4 changed files with 19 additions and 8 deletions
+3 -3
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2025_11_21_092044) do
ActiveRecord::Schema[8.0].define(version: 2025_11_21_093511) do
# These are extensions that must be enabled in order to support this database
enable_extension "btree_gin"
enable_extension "plpgsql"
@@ -119,8 +119,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_11_21_092044) do
t.datetime "updated_at", null: false
t.string "verification_method"
t.boolean "is_first"
t.index ["account_id", "completed_at"], name: "index_completed_submitters_on_account_id_and_completed_at", where: "(is_first = true)"
t.index ["account_id"], name: "index_completed_submitters_on_account_id"
t.index ["account_id", "completed_at"], name: "index_completed_submitters_account_id_completed_at_is_first", where: "(is_first = true)"
t.index ["account_id", "completed_at"], name: "index_completed_submitters_on_account_id_and_completed_at"
t.index ["submission_id"], name: "index_completed_submitters_on_submission_id", unique: true, where: "(is_first = true)"
t.index ["submitter_id"], name: "index_completed_submitters_on_submitter_id", unique: true
end