Skip to content

Commit

Permalink
Merge pull request #2001 from DFE-Digital/assessment-unsigned-consent…
Browse files Browse the repository at this point in the history
…-generated

Move unsigned_consent_document_generated
  • Loading branch information
thomasleese authored Feb 16, 2024
2 parents 08009eb + c99dc06 commit 6f88346
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/models/assessment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# started_at :datetime
# subjects :text default([]), not null, is an Array
# subjects_note :text default(""), not null
# unsigned_consent_document_generated :boolean default(FALSE), not null
# working_days_since_started :integer
# working_days_started_to_recommendation :integer
# working_days_submission_to_recommendation :integer
Expand Down
1 change: 0 additions & 1 deletion app/models/qualification_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# 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
2 changes: 1 addition & 1 deletion config/analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
- started_at
- subjects
- subjects_note
- unsigned_consent_document_generated
- updated_at
- working_days_since_started
- working_days_started_to_recommendation
Expand Down Expand Up @@ -222,7 +223,6 @@
- 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,17 @@
class AddUnsignedConsentDocumentGeneratedToAssessment < ActiveRecord::Migration[
7.1
]
def change
add_column :assessments,
:unsigned_consent_document_generated,
:boolean,
default: false,
null: false

remove_column :qualification_requests,
:unsigned_consent_document_generated,
:boolean,
default: false,
null: false
end
end
4 changes: 2 additions & 2 deletions 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/assessments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# started_at :datetime
# subjects :text default([]), not null, is an Array
# subjects_note :text default(""), not null
# unsigned_consent_document_generated :boolean default(FALSE), not null
# working_days_since_started :integer
# working_days_started_to_recommendation :integer
# working_days_submission_to_recommendation :integer
Expand Down
1 change: 0 additions & 1 deletion spec/factories/qualification_requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# 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/assessment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# started_at :datetime
# subjects :text default([]), not null, is an Array
# subjects_note :text default(""), not null
# unsigned_consent_document_generated :boolean default(FALSE), not null
# working_days_since_started :integer
# working_days_started_to_recommendation :integer
# working_days_submission_to_recommendation :integer
Expand Down
1 change: 0 additions & 1 deletion spec/models/qualification_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# 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 6f88346

Please sign in to comment.