fix weird association problems
This commit is contained in:
parent
a9ca18de4a
commit
0780a4c048
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ defmodule Chiya.Channels.Channel do
|
||||||
|
|
||||||
many_to_many :notes, Chiya.Notes.Note,
|
many_to_many :notes, Chiya.Notes.Note,
|
||||||
join_through: "channels_notes",
|
join_through: "channels_notes",
|
||||||
join_keys: [note: :id, channel: :id]
|
join_keys: [channel: :id, note: :id]
|
||||||
|
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue