REFACTOR : Change dossier state 'Deposited' To 'SubmitValidated'

This commit is contained in:
Xavier J 2015-11-02 11:52:39 +01:00
parent da8c166331
commit 76d87c7f79
14 changed files with 40 additions and 35 deletions

View file

@ -0,0 +1,5 @@
class ChangeStateDepositedToSubmitValidate < ActiveRecord::Migration
def change
Dossier.where(state: 'deposited').update_all(state: 'submit_validated')
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20151102104309) do
ActiveRecord::Schema.define(version: 20151102105011) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"