Add path column to procedures table

This commit is contained in:
Paul Chavard 2018-09-13 18:19:14 +02:00
parent bce2e53f71
commit 5ab22ee139
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddPathToProcedures < ActiveRecord::Migration[5.2]
def change
add_column :procedures, :path, :string, index: true
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2018_08_27_111451) do
ActiveRecord::Schema.define(version: 2018_09_13_160415) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -486,6 +486,7 @@ ActiveRecord::Schema.define(version: 2018_08_27_111451) do
t.string "cadre_juridique"
t.boolean "juridique_required", default: true
t.boolean "durees_conservation_required", default: true
t.string "path"
t.index ["hidden_at"], name: "index_procedures_on_hidden_at"
t.index ["parent_procedure_id"], name: "index_procedures_on_parent_procedure_id"
t.index ["service_id"], name: "index_procedures_on_service_id"