[Fix #503] Lib task: move updated, replied state to initiated

This commit is contained in:
Simon Lehericey 2017-09-22 11:11:04 +02:00
parent 1cfeb10ce9
commit 27013c7908

View file

@ -0,0 +1,5 @@
namespace :'2017_09_22_set_dossier_updated_replied_to_initiated' do
task set: :environment do
Dossier.unscoped.where(state: [:updated, :replied]).update_all(state: :initiated)
end
end