fix incorrect foreign key in interactions
This commit is contained in:
parent
a39fb4106f
commit
0004d1dc80
|
@ -20,11 +20,11 @@ defmodule Backend.Instance do
|
|||
references: :domain
|
||||
|
||||
has_many :outgoing_interactions, Backend.Interaction,
|
||||
foreign_key: "from_instance",
|
||||
foreign_key: :source_domain,
|
||||
references: :domain
|
||||
|
||||
has_many :incoming_interactions, Backend.Interaction,
|
||||
foreign_key: "to_instance",
|
||||
foreign_key: :target_domain,
|
||||
references: :domain
|
||||
|
||||
timestamps()
|
||||
|
|
Loading…
Reference in New Issue