From 7130eb6f418534f32b277bd46240bef0259c36df Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Wed, 2 May 2018 15:25:39 +0200 Subject: [PATCH] Fix Sentry #2565 --- .../20180502092852_remove_parent_procedure_foreign_key.rb | 5 +++++ db/schema.rb | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20180502092852_remove_parent_procedure_foreign_key.rb diff --git a/db/migrate/20180502092852_remove_parent_procedure_foreign_key.rb b/db/migrate/20180502092852_remove_parent_procedure_foreign_key.rb new file mode 100644 index 000000000..5b466f851 --- /dev/null +++ b/db/migrate/20180502092852_remove_parent_procedure_foreign_key.rb @@ -0,0 +1,5 @@ +class RemoveParentProcedureForeignKey < ActiveRecord::Migration[5.2] + def change + remove_foreign_key :procedures, column: "parent_procedure_id" + end +end diff --git a/db/schema.rb b/db/schema.rb index eec9b4f96..c1b888d2c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2018_04_24_130548) do +ActiveRecord::Schema.define(version: 2018_05_02_092852) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -574,7 +574,6 @@ ActiveRecord::Schema.define(version: 2018_04_24_130548) do add_foreign_key "procedure_paths", "administrateurs" add_foreign_key "procedure_paths", "procedures" add_foreign_key "procedure_presentations", "assign_tos" - add_foreign_key "procedures", "procedures", column: "parent_procedure_id" add_foreign_key "received_mails", "procedures" add_foreign_key "refused_mails", "procedures" add_foreign_key "without_continuation_mails", "procedures"