Remove brouillons deleted dossiers
This commit is contained in:
parent
8dcbe5f47c
commit
60cb9bcf09
3 changed files with 11 additions and 2 deletions
|
@ -0,0 +1,10 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue