demarches-normaliennes/lib/tasks/deployment/20200326133630_cleanup_deleted_dossiers.rake
2020-03-31 16:54:33 +02:00

10 lines
312 B
Ruby

namespace :after_party do
desc 'Deployment task: cleanup_deleted_dossiers'
task cleanup_deleted_dossiers: :environment do
puts "Running deploy task 'cleanup_deleted_dossiers'"
DeletedDossier.where(state: :brouillon).destroy_all
AfterParty::TaskRecord.create version: '20200326133630'
end
end