demarches-normaliennes/db/migrate/20151102135824_change_state_processed_to_closed.rb

5 lines
150 B
Ruby

class ChangeStateProcessedToClosed < ActiveRecord::Migration
def change
Dossier.where(state: 'processed').update_all(state: 'closed')
end
end