demarches-normaliennes/db/migrate/20170221143909_remove_useless_dossier_states.rb

5 lines
168 B
Ruby

class RemoveUselessDossierStates < ActiveRecord::Migration[5.0]
def change
Dossier.where(state: [:validated, :submitted]).update_all(state: :initiated)
end
end