Ecto question (foreign key name & preload/association name)

I figured it out. I need to belongs_to :owner. The first argument is the field name, not the name of the db table.

Embarrassed that this took me a few hours of searching and experimenting. This link helped me.

1 Like