How do I make an attribute on a resource unique?
I believe Identities are the way to do it https://ash-hq.org/docs/guides/ash/latest/topics/identities
But having trouble finding code examples.
2 Replies
that would make
:thing
unique on the resource
if you generate migrations you'll see that it generates a unique constraint
(if you're using ash_postgres)awesome thanks