You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unless this exists and I can't find it, this is a feature proposal/discussion.
I'm currently writing a migration and I'd like to end up with a case-insensitive unique index on a string column. The purpose is to mirror/enforce the following validation in the db:
Thank you so much for the issue but we don't take feature request on the issue tracker. We recommend you to try to implement the feature and send us a pull request or if you are in doubt if the feature will be accepts ask in the Rails Core discussion board for feedback.
Uh oh!
There was an error while loading. Please reload this page.
Unless this exists and I can't find it, this is a feature proposal/discussion.
I'm currently writing a migration and I'd like to end up with a case-insensitive unique index on a string column. The purpose is to mirror/enforce the following validation in the db:
Using
postgres
, it would look like this:UPPER
orLOWER
doesn't matter, it's used only in the index. Refer to Postgres docsPutting this in a migration might look like this:
Probably
ignore_case
would only be valid ifunique
were true. Or we could use aunique_ignore_case
Thoughts on such a feature?
The text was updated successfully, but these errors were encountered: