So, I see that you wrote this thread a few days ago.
I’m far from a specialist, but maybe I could help. I’ve made something similar to this problem.
From your original post, I think the problem could be in your changesets. Usually all you need is to use put_assoc
or cast_assoc
and Ecto will build your associations in the database. Can you post them?