Postgres reference with non-"id" primary keys
Hey, I have these two resources:
And I'm getting this compile error:
I would appreciate any help on or pointers to how to fix this and tell Ash that my primary reference is indeed not
:id
but :code
.
Thanks, Michal3 Replies
Add
source_attribute :code
to the expenses relationship.
We could likely improve that default behavior there.Great, thanks! This is my second time trying out Ash and I'm really loving it so far!
LMK if you have any other questions!