Merge pull request #2793 from betagouv/remove-invite-gestionnaires

Remove all InviteGestionnaires
This commit is contained in:
Frederic Merizen 2018-10-10 10:34:40 +02:00 committed by GitHub
commit 6d139ed1a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,10 @@
namespace :after_party do
desc 'Deployment task: remove_invite_gestionnaires'
task remove_invite_gestionnaires: :environment do
InviteGestionnaire.destroy_all
# 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: '20181010102500'
end
end