Skip to content

Commit

Permalink
Add unsigned_consent_document_generated column
Browse files Browse the repository at this point in the history
This adds a column which records when the assessor has generated the
unsigned consent document.
  • Loading branch information
thomasleese committed Feb 15, 2024
1 parent 3dfcb47 commit ffbd583
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/models/qualification_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions config/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
- review_passed
- reviewed_at
- unsigned_consent_document_downloaded
- unsigned_consent_document_generated
- updated_at
- verified_at
- verify_note
Expand Down
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions spec/factories/qualification_requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions spec/models/qualification_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffbd583

Please sign in to comment.