From 934ce9cb7fdb2b956c0c851b53b6d61b81f537a8 Mon Sep 17 00:00:00 2001 From: Samuel Stuckey Date: Wed, 6 Mar 2024 10:04:08 -0500 Subject: [PATCH] [dbx-75526.2] add default state to form526 submissions --- ...0240306150112_add_default_state_to_form526_submissions.rb | 5 +++++ db/schema.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20240306150112_add_default_state_to_form526_submissions.rb diff --git a/db/migrate/20240306150112_add_default_state_to_form526_submissions.rb b/db/migrate/20240306150112_add_default_state_to_form526_submissions.rb new file mode 100644 index 00000000000..475331de17d --- /dev/null +++ b/db/migrate/20240306150112_add_default_state_to_form526_submissions.rb @@ -0,0 +1,5 @@ +class AddDefaultStateToForm526Submissions < ActiveRecord::Migration[7.0] + def up + change_column_default :form526_submissions, :aasm_state, 'unprocessed' + end +end diff --git a/db/schema.rb b/db/schema.rb index 7dbe724b523..279ebd5ce44 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2024_02_29_152705) do +ActiveRecord::Schema[7.0].define(version: 2024_03_06_150112) do # These are extensions that must be enabled in order to support this database enable_extension "btree_gin" enable_extension "pg_stat_statements" @@ -603,7 +603,7 @@ t.text "encrypted_kms_key" t.uuid "user_account_id" t.string "backup_submitted_claim_id", comment: "*After* a SubmitForm526 Job has exhausted all attempts, a paper submission is generated and sent to Central Mail Portal.This column will be nil for all submissions where a backup submission is not generated.It will have the central mail id for submissions where a backup submission is submitted." - t.string "aasm_state" + t.string "aasm_state", default: "unprocessed" t.index ["saved_claim_id"], name: "index_form526_submissions_on_saved_claim_id", unique: true t.index ["submitted_claim_id"], name: "index_form526_submissions_on_submitted_claim_id", unique: true t.index ["user_account_id"], name: "index_form526_submissions_on_user_account_id"