Closed cpursley closed 6 years ago
has_many
works, but it only returns one result.
I'll try to take a look at this but I don't have much time at the moment so any help would be appreciated.
Turns out the bug was in my head, not the code ;)
Closing.
When using non-standard primary keys in a legacy database schema, mssql_ecto associations are building out incompatible foreign keys.
An example primary key source in the database is
UserID
while the ecto alias of that isuser_id
. Mssql creates a foreign key likeuser_id_id
.