fix incorrect foreign key in interactions
This commit is contained in:
parent
8e9a909180
commit
96f9e1bf57
|
@ -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