Moulinette™ for unprocessed accepted dossiers

This commit is contained in:
Paul Chavard 2018-02-20 16:21:41 +01:00
parent 49bb4f0b54
commit d9d31214fe

View file

@ -0,0 +1,7 @@
namespace :'2018_02_20_set_processed_at' do
task set: :environment do
Dossier.where(state: :accepte, processed_at: nil).find_each do |dossier|
dossier.update_column(:processed_at, dossier.en_instruction_at)
end
end
end