From b9e449225a3dabee6f9f3451026a84afe904e873 Mon Sep 17 00:00:00 2001 From: Tyler Fink Date: Thu, 28 Mar 2024 09:24:39 -0600 Subject: [PATCH] Plucked db changes (#15873) --- db/migrate/20240313211432_add_status_to_inprogress_form.rb | 5 +++++ .../20240313211541_add_status_to_inprogress_form_default.rb | 5 +++++ db/schema.rb | 1 + 3 files changed, 11 insertions(+) create mode 100644 db/migrate/20240313211432_add_status_to_inprogress_form.rb create mode 100644 db/migrate/20240313211541_add_status_to_inprogress_form_default.rb diff --git a/db/migrate/20240313211432_add_status_to_inprogress_form.rb b/db/migrate/20240313211432_add_status_to_inprogress_form.rb new file mode 100644 index 00000000000..166ebcf4d11 --- /dev/null +++ b/db/migrate/20240313211432_add_status_to_inprogress_form.rb @@ -0,0 +1,5 @@ +class AddStatusToInprogressForm < ActiveRecord::Migration[7.0] + def change + add_column :in_progress_forms, :status, :integer + end +end diff --git a/db/migrate/20240313211541_add_status_to_inprogress_form_default.rb b/db/migrate/20240313211541_add_status_to_inprogress_form_default.rb new file mode 100644 index 00000000000..44620cb1bbc --- /dev/null +++ b/db/migrate/20240313211541_add_status_to_inprogress_form_default.rb @@ -0,0 +1,5 @@ +class AddStatusToInprogressFormDefault < ActiveRecord::Migration[7.0] + def change + change_column_default :in_progress_forms, :status, from: nil, to: 0 + end +end diff --git a/db/schema.rb b/db/schema.rb index 71001dcade6..5b965cc0c0d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -727,6 +727,7 @@ t.text "form_data_ciphertext" t.text "encrypted_kms_key" t.uuid "user_account_id" + t.integer "status", default: 0 t.index ["form_id", "user_uuid"], name: "index_in_progress_forms_on_form_id_and_user_uuid", unique: true t.index ["user_account_id"], name: "index_in_progress_forms_on_user_account_id" t.index ["user_uuid"], name: "index_in_progress_forms_on_user_uuid"