Dimitri
AEAsh Elixir
•Created by Robert Graff on 7/20/2023 in #support
How do relationships with composite keys work?
Heya, thanks for respondin guys! I thought I'd keep it in one place and kind of missed its an actual archive 😅 Im not quite sure tho how this would work in my case. As Im trying to set an actual foreign key based of of a primary key thats a composite of 2 fields. Your example just looks like a runtime query instead of being able to save a foreignkey (in postgres) 🧐 ?
10 replies
AEAsh Elixir
•Created by Robert Graff on 7/20/2023 in #support
How do relationships with composite keys work?
While looking for an answer to this same question I ended up here. Hi btw! First message here 🙂 I found out the destination_attribute still expects a single atom. Am i correct in assuming there hasn't been any change arround this subject and a manual relationship is still the way to go when one would be trying to write a belongs_to pointing to a table with a composit primary key?
10 replies