migration
This commit is contained in:
parent
d21896b1e3
commit
0381444770
2 changed files with 8 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
class AddReplacementProcedureIdToProcedures < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
add_column :procedures, :replaced_by_procedure_id, :bigint, foreign_key: { to_table: :procedures }
|
||||||
|
end
|
||||||
|
end
|
|
@ -10,7 +10,8 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 2022_04_26_140107) do
|
ActiveRecord::Schema.define(version: 2022_05_20_173939) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
enable_extension "unaccent"
|
enable_extension "unaccent"
|
||||||
|
@ -653,6 +654,7 @@ ActiveRecord::Schema.define(version: 2022_04_26_140107) do
|
||||||
t.boolean "procedure_expires_when_termine_enabled", default: true
|
t.boolean "procedure_expires_when_termine_enabled", default: true
|
||||||
t.datetime "published_at"
|
t.datetime "published_at"
|
||||||
t.bigint "published_revision_id"
|
t.bigint "published_revision_id"
|
||||||
|
t.bigint "replaced_by_procedure_id"
|
||||||
t.text "routing_criteria_name", default: "Votre ville"
|
t.text "routing_criteria_name", default: "Votre ville"
|
||||||
t.boolean "routing_enabled"
|
t.boolean "routing_enabled"
|
||||||
t.bigint "service_id"
|
t.bigint "service_id"
|
||||||
|
|
Loading…
Reference in a new issue