diff --git a/app/models/qualification_request.rb b/app/models/qualification_request.rb index 5de3d25f54..67b430ac62 100644 --- a/app/models/qualification_request.rb +++ b/app/models/qualification_request.rb @@ -16,6 +16,7 @@ # review_passed :boolean # reviewed_at :datetime # unsigned_consent_document_downloaded :boolean default(FALSE), not null +# unsigned_consent_document_generated :boolean default(FALSE), not null # verified_at :datetime # verify_note :text default(""), not null # verify_passed :boolean diff --git a/config/analytics.yml b/config/analytics.yml index 3107cf8314..f21c810dd9 100644 --- a/config/analytics.yml +++ b/config/analytics.yml @@ -222,6 +222,7 @@ - review_passed - reviewed_at - unsigned_consent_document_downloaded + - unsigned_consent_document_generated - updated_at - verified_at - verify_note diff --git a/db/migrate/20240215092915_add_unsigned_consent_document_generated_to_qualification_requests.rb b/db/migrate/20240215092915_add_unsigned_consent_document_generated_to_qualification_requests.rb new file mode 100644 index 0000000000..baf052e76a --- /dev/null +++ b/db/migrate/20240215092915_add_unsigned_consent_document_generated_to_qualification_requests.rb @@ -0,0 +1,11 @@ +class AddUnsignedConsentDocumentGeneratedToQualificationRequests < ActiveRecord::Migration[ + 7.1 +] + def change + add_column :qualification_requests, + :unsigned_consent_document_generated, + :boolean, + default: false, + null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 2331ab992b..5360cc282c 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_02_15_085624) do +ActiveRecord::Schema[7.1].define(version: 2024_02_15_092915) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" enable_extension "plpgsql" @@ -293,6 +293,7 @@ t.datetime "consent_received_at" t.datetime "consent_requested_at" t.string "consent_method", default: "unknown", null: false + t.boolean "unsigned_consent_document_generated", default: false, null: false t.index ["assessment_id"], name: "index_qualification_requests_on_assessment_id" t.index ["qualification_id"], name: "index_qualification_requests_on_qualification_id" end diff --git a/spec/factories/qualification_requests.rb b/spec/factories/qualification_requests.rb index 067f2b5d2b..2a5dc8a9fe 100644 --- a/spec/factories/qualification_requests.rb +++ b/spec/factories/qualification_requests.rb @@ -16,6 +16,7 @@ # review_passed :boolean # reviewed_at :datetime # unsigned_consent_document_downloaded :boolean default(FALSE), not null +# unsigned_consent_document_generated :boolean default(FALSE), not null # verified_at :datetime # verify_note :text default(""), not null # verify_passed :boolean diff --git a/spec/models/qualification_request_spec.rb b/spec/models/qualification_request_spec.rb index e99ae97e22..724236f152 100644 --- a/spec/models/qualification_request_spec.rb +++ b/spec/models/qualification_request_spec.rb @@ -16,6 +16,7 @@ # review_passed :boolean # reviewed_at :datetime # unsigned_consent_document_downloaded :boolean default(FALSE), not null +# unsigned_consent_document_generated :boolean default(FALSE), not null # verified_at :datetime # verify_note :text default(""), not null # verify_passed :boolean