demarches-normaliennes/db/migrate/20151102142940_change_state_submitted_to_initiated.rb

5 lines
156 B
Ruby

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