Moulinette™ for unprocessed accepted dossiers
This commit is contained in:
parent
49bb4f0b54
commit
d9d31214fe
1 changed files with 7 additions and 0 deletions
7
lib/tasks/2018_02_20_set_processed_at.rake
Normal file
7
lib/tasks/2018_02_20_set_processed_at.rake
Normal 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
|
Loading…
Reference in a new issue