Merge pull request #2932 from tchak/remove-path-from-archived-procedures

Remove path from archived procedures
This commit is contained in:
Paul Chavard 2018-10-31 12:05:34 +01:00 committed by GitHub
commit ab98e024c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,8 @@
namespace :after_party do
desc 'Deployment task: remove_path_from_archived_procedures'
task remove_path_from_archived_procedures: :environment do
Procedure.archivees.where.not(path: nil).update_all(path: nil)
AfterParty::TaskRecord.create version: '20181031104615'
end
end