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

7 lines
157 B
Ruby
Raw Normal View History

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