fix completed submitters

This commit is contained in:
Pete Matsyburka
2024-10-26 19:42:16 +03:00
parent 46e948ab99
commit 1b636c5878
6 changed files with 27 additions and 13 deletions
@@ -0,0 +1,8 @@
# frozen_string_literal: true
class AddUniqueIndexOnCompletedSubmitters < ActiveRecord::Migration[7.2]
def change
remove_index :completed_submitters, :submitter_id
add_index :completed_submitters, :submitter_id, unique: true
end
end
+2 -2
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.2].define(version: 2024_10_22_125135) do
ActiveRecord::Schema[7.2].define(version: 2024_10_26_161207) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -109,7 +109,7 @@ ActiveRecord::Schema[7.2].define(version: 2024_10_22_125135) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["account_id"], name: "index_completed_submitters_on_account_id"
t.index ["submitter_id"], name: "index_completed_submitters_on_submitter_id"
t.index ["submitter_id"], name: "index_completed_submitters_on_submitter_id", unique: true
end
create_table "document_generation_events", force: :cascade do |t|