demarches-normaliennes/db/migrate/20151102101616_change_state_proposed_to_submitted.rb

5 lines
154 B
Ruby

class ChangeStateProposedToSubmitted < ActiveRecord::Migration
def change
Dossier.where(state: 'proposed').update_all(state: 'submitted')
end
end