This commit is contained in:
Mathieu Magnin 2018-05-02 15:25:39 +02:00
parent c43ae05ed4
commit 7130eb6f41
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"