Hey what's the state of the art in setting up database-level validations (Postgres, specifically) in Rails? Particularly scoped uniqueness constraints? Any handy gems? Or do you just execute some SQL in the migration?
Replying to @avdi
Scoped uniqueness doesn't need to be a constraint in PG. Unique index with a where clause will do it, which rails can do out of the box
10:27 AM - 12 Jul 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.