From e531aca7fa9a316fa55d5e598ec8560c711b6817 Mon Sep 17 00:00:00 2001 From: Keith WIlliams Date: Tue, 4 Jun 2024 13:36:40 -0400 Subject: [PATCH 1/3] feat: add sponsor_id to in_person_enrollments --- .../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..15c6a035098 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" 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)" From a14c15cdee0eb64ba671d52fd40b7309078710de Mon Sep 17 00:00:00 2001 From: Keith WIlliams Date: Tue, 4 Jun 2024 15:44:26 -0400 Subject: [PATCH 2/3] changelog: Upcoming Features, In-person proofing, persist sponsor_id on in_person_enrollments From 4b82de0a7f0425670f6706936dcc5fc4041cc75e Mon Sep 17 00:00:00 2001 From: Keith WIlliams Date: Thu, 6 Jun 2024 09:55:26 -0400 Subject: [PATCH 3/3] feat: add comment for new sponsor_id field --- db/schema.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/schema.rb b/db/schema.rb index 15c6a035098..700e9562644 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -318,7 +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" + 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)"