fix incorrect foreign key in interactions

This commit is contained in:
Tao Bror Bojlén 2019-06-30 23:23:40 +01:00
parent a39fb4106f
commit 0004d1dc80
No known key found for this signature in database
GPG Key ID: C6EC7AAB905F9E6F
1 changed files with 2 additions and 2 deletions

View File

@ -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()