diff --git a/lib/tasks/deployment/20240528155104_backfill_attestation_template_v2_as_draft.rake b/lib/tasks/deployment/20240528155104_backfill_attestation_template_v2_as_draft.rake new file mode 100644 index 000000000..d56ad5d5f --- /dev/null +++ b/lib/tasks/deployment/20240528155104_backfill_attestation_template_v2_as_draft.rake @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +namespace :after_party do + desc 'Deployment task: attestation_template_v2_as_draft' + task backfill_attestation_template_v2_as_draft: :environment do + puts "Running deploy task 'backfill_attestation_template_v2_as_draft'" + + AttestationTemplate.v2.update_all(state: :draft) + + # Update task as completed. If you remove the line below, the task will + # run with every deploy (or every time you call after_party:run). + AfterParty::TaskRecord + .create version: AfterParty::TaskRecorder.new(__FILE__).timestamp + end +end