From e5c3ffe4b57734c31b72fd3b9e3b91a635c56062 Mon Sep 17 00:00:00 2001 From: KeithNava <134446588+KeithNava@users.noreply.github.com> Date: Mon, 10 Jun 2024 14:37:36 -0400 Subject: [PATCH] LG-13233: add sponsor_id to in_person_enrollments model (#10759) * feat: add sponsor_id to in_person_enrollments * changelog: Upcoming Features, In-person proofing, persist sponsor_id on in_person_enrollments * feat: add comment for new sponsor_id field --- .../20240604173515_add_sponsor_id_to_in_person_enrollment.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/primary_migrate/20240604173515_add_sponsor_id_to_in_person_enrollment.rb diff --git a/db/primary_migrate/20240604173515_add_sponsor_id_to_in_person_enrollment.rb b/db/primary_migrate/20240604173515_add_sponsor_id_to_in_person_enrollment.rb new file mode 100644 index 00000000000..4e7675a649d --- /dev/null +++ b/db/primary_migrate/20240604173515_add_sponsor_id_to_in_person_enrollment.rb @@ -0,0 +1,5 @@ +class AddSponsorIdToInPersonEnrollment < ActiveRecord::Migration[7.1] + def change + add_column :in_person_enrollments, :sponsor_id, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 479d2fdd5d3..700e9562644 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.1].define(version: 2024_05_31_175935) do +ActiveRecord::Schema[7.1].define(version: 2024_06_04_173515) do # These are extensions that must be enabled in order to support this database enable_extension "citext" enable_extension "pg_stat_statements" @@ -318,6 +318,7 @@ t.boolean "ready_for_status_check", default: false t.datetime "notification_sent_at", comment: "The time a notification was sent" t.datetime "last_batch_claimed_at" + t.string "sponsor_id", comment: "The identification number for USPS to recognize us and our flow (ex: Enhanced IPP)" t.index ["profile_id"], name: "index_in_person_enrollments_on_profile_id" t.index ["ready_for_status_check"], name: "index_in_person_enrollments_on_ready_for_status_check", where: "(ready_for_status_check = true)" t.index ["status_check_attempted_at"], name: "index_in_person_enrollments_on_status_check_attempted_at", where: "(status = 1)"