[Fix #503] Lib task: move updated, replied state to initiated
This commit is contained in:
parent
1cfeb10ce9
commit
27013c7908
1 changed files with 5 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue