How To: Exclusion constraints in AshPostgres
Im setting up an exclusion constraint an a few time attributes. I dont see anywhere in the docs an affordance for exclusion constraints, only check constraints, so what I did is create the migration for the exclusion manually, but now im getting an ecto error asking me to add it to the changeset.
Question is, is this supported? Is there a way to add the exclusion without having to do it manually for each changeset in each action?
2 Replies
I haven't used it myself but there is https://www.ash-hq.org/docs/dsl/ash-resource#postgres-exclusion_constraint_names which might help
that actually works!
would be nice to have first class support for it though like we do for check contraints