fix(message): add instructeurs foreign key
This commit is contained in:
parent
1641d8806e
commit
fa18ebd63a
2 changed files with 7 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
class AddForeignKeyToCommentairesInstructeurId < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
add_foreign_key :commentaires, :instructeurs, validate: false
|
||||||
|
end
|
||||||
|
end
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# 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_10_13_142432) do
|
ActiveRecord::Schema.define(version: 2022_10_20_094031) 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 "pgcrypto"
|
enable_extension "pgcrypto"
|
||||||
|
@ -913,6 +913,7 @@ ActiveRecord::Schema.define(version: 2022_10_13_142432) do
|
||||||
add_foreign_key "closed_mails", "procedures"
|
add_foreign_key "closed_mails", "procedures"
|
||||||
add_foreign_key "commentaires", "dossiers"
|
add_foreign_key "commentaires", "dossiers"
|
||||||
add_foreign_key "commentaires", "experts"
|
add_foreign_key "commentaires", "experts"
|
||||||
|
add_foreign_key "commentaires", "instructeurs"
|
||||||
add_foreign_key "dossier_operation_logs", "bill_signatures"
|
add_foreign_key "dossier_operation_logs", "bill_signatures"
|
||||||
add_foreign_key "dossier_transfer_logs", "dossiers"
|
add_foreign_key "dossier_transfer_logs", "dossiers"
|
||||||
add_foreign_key "dossiers", "dossier_transfers"
|
add_foreign_key "dossiers", "dossier_transfers"
|
||||||
|
|
Loading…
Reference in a new issue