demarches-normaliennes/db/migrate/20151102104309_change_state_confirmed_to_validated.rb

6 lines
156 B
Ruby
Raw Normal View History

class ChangeStateConfirmedToValidated < ActiveRecord::Migration
def change
Dossier.where(state: 'confirmed').update_all(state: 'validated')
end
end