Merge pull request #1905 from betagouv/fix-sentry-2565

Fix Sentry #2565
This commit is contained in:
Mathieu Magnin 2018-05-02 16:52:03 +02:00 committed by GitHub
commit 923946dbf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -0,0 +1,5 @@
class RemoveParentProcedureForeignKey < ActiveRecord::Migration[5.2]
def change
remove_foreign_key :procedures, column: "parent_procedure_id"
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_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"