[fix #504] Dossier: draft -> brouillon

This commit is contained in:
Simon Lehericey 2017-12-04 16:17:15 +01:00 committed by LeSim
parent 56545933a9
commit 72bae2c374
34 changed files with 93 additions and 89 deletions

View file

@ -1,4 +1,8 @@
namespace :'2017_12_04_translate_dossier_state_to_french' do
task brouillon: :environment do
Dossier.unscoped.where(state: 'draft').update_all(state: 'brouillon')
end
task en_construction: :environment do
Dossier.unscoped.where(state: 'initiated').update_all(state: 'en_construction')
end