fix weird association problems

This commit is contained in:
inhji 2023-03-14 10:07:38 +01:00
parent a9ca18de4a
commit 0780a4c048

View file

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