Revert "Merge pull request #6142 from tchak/enable_brouillon_extend_conservation"
This reverts commit48eb4d9778
, reversing changes made to5539d5cb8c
. # Conflicts: # app/models/dossier.rb # db/schema.rb
This commit is contained in:
parent
4cba6e3b11
commit
bcbfcdc537
8 changed files with 15 additions and 64 deletions
|
@ -1,16 +0,0 @@
|
|||
namespace :after_party do
|
||||
desc 'Deployment task: rename_conservation_extension'
|
||||
task rename_conservation_extension: :environment do
|
||||
puts "Running deploy task 'rename_conservation_extension'"
|
||||
|
||||
dossiers = Dossier.state_en_construction.where.not(en_construction_conservation_extension: 0.days)
|
||||
dossiers.find_each do |dossier|
|
||||
dossier.update_column(:conservation_extension, dossier.en_construction_conservation_extension)
|
||||
end
|
||||
|
||||
# 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
|
Loading…
Add table
Add a link
Reference in a new issue