Revert "Merge pull request #6142 from tchak/enable_brouillon_extend_conservation"

This reverts commit 48eb4d9778, reversing
changes made to 5539d5cb8c.

# Conflicts:
#	app/models/dossier.rb
#	db/schema.rb
This commit is contained in:
Paul Chavard 2021-05-04 16:03:29 +02:00
parent 4cba6e3b11
commit bcbfcdc537
8 changed files with 15 additions and 64 deletions

View file

@ -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