News for hackers. Stuff that matters.
Re:Ecto's uniqueness constraint vs. Rails' uniqueness valida... by sb8244 on Sunday May 22, 2022 @10:21AM (#31468460)
Yea this has gotten me too. What I do now is specify the field I want the error on first in the constraint function, then manually set the index name.

It will still work exactly as expected if you provide the index name manually, even if it's not the same order as the constraint in the DB.

There are no comments on this comment yet.