Add aasm_state to procedures
This commit is contained in:
parent
a8e7038ab5
commit
2b8ee92074
4 changed files with 18 additions and 4 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddAasmStateToProcedures < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
add_column :procedures, :aasm_state, :string, index: true, default: :brouillon
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2018_05_02_092852) do
|
||||
ActiveRecord::Schema.define(version: 2018_05_15_135415) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -465,6 +465,7 @@ ActiveRecord::Schema.define(version: 2018_05_02_092852) do
|
|||
t.boolean "cloned_from_library", default: false
|
||||
t.bigint "parent_procedure_id"
|
||||
t.datetime "test_started_at"
|
||||
t.string "aasm_state", default: "brouillon"
|
||||
t.index ["hidden_at"], name: "index_procedures_on_hidden_at"
|
||||
t.index ["parent_procedure_id"], name: "index_procedures_on_parent_procedure_id"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue