With AshPostgres, what is the proper way to create a exclusion constraint in a ash resource?
For check constraint, we can do it like this
With the above codes, when we run
mix ash.codegen <filename>
constraints are created. But how can we do the same for exclusion constraint? Thanks.4 Replies
it might not be supported in the DSL, but it would probably work as a custom statement
how to do a custom statement? any example? thanks
thanks