Skip to content

Commit

Permalink
Merge pull request #9840 from alphagov/retroactively-confirm-consulta…
Browse files Browse the repository at this point in the history
…tion-principles

Set read_consultation_principles to true for all post publication consultation editions
  • Loading branch information
ryanb-gds authored Jan 23, 2025
2 parents 0102936 + 1910e2f commit d5786bc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# When the validation requiring publishers to confirm that they have considered the consultation principles was introduced,
# we did not backdate this to existing consultations. This means that some consultations cannot be withdrawn, unwithdrawn
# or unpublished because they are not technically valid, despite being public on GOV.UK. This data migration retroactively
# confirms that all post-publication consultations have considered the consultation principles.

Consultation.where(state: Edition::POST_PUBLICATION_STATES).update_all(read_consultation_principles: true)

0 comments on commit d5786bc

Please sign in to comment.