migration

This commit is contained in:
Kara Diaby 2022-05-23 18:57:22 +02:00
parent d21896b1e3
commit 0381444770
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -10,7 +10,8 @@
#
# 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
enable_extension "plpgsql"
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.datetime "published_at"
t.bigint "published_revision_id"
t.bigint "replaced_by_procedure_id"
t.text "routing_criteria_name", default: "Votre ville"
t.boolean "routing_enabled"
t.bigint "service_id"