Defect #32897
closed
Rails 6: Pass `case_sensitive: true` option explicitly to the uniqueness validator
Added by Marius BĂLTEANU almost 5 years ago.
Updated over 3 years ago.
Category:
Code cleanup/refactoring
Description
Rails 6 displays deprecation warning for uniqueness validator:
DEPRECATION WARNING: Uniqueness validator will no longer enforce case sensitive comparison in Rails 6.1. To continue case sensitive comparison on the :identifier attribute in Project model, pass `case_sensitive: true` option explicitly to the uniqueness validator.
https://github.com/rails/rails/pull/35350
Files
- Related to Feature #29914: Migrate to Rails 6.1 with Zeitwerk autoloading added
- File 0001-Fix-DEPRECATION-WARNING-Uniqueness-validator-will-no.patch added
- Status changed from New to Closed
- Assignee set to Go MAEDA
Committed the patch. Thank you for your contribution.
- Status changed from Closed to Reopened
Sorry, I've attached a broken patch, please revert it and will post later the correct one.
Here is the correct patch, please revert r19478 and commit this one.
Marius BALTEANU wrote:
Sorry, I've attached a broken patch, please revert it and will post later the correct one.
Done.
Go MAEDA wrote:
Marius BALTEANU wrote:
Sorry, I've attached a broken patch, please revert it and will post later the correct one.
Done.
Thanks, patch from #note-5 is the correct one, you can commit it.
- File deleted (
0001-Fix-DEPRECATION-WARNING-Uniqueness-validator-will-no.patch)
- Target version changed from 4.2.0 to 5.0.0
We can fix this in 5.0.0.
Go MAEDA, is anything I can do to have this change committed?
- Tracker changed from Patch to Defect
- Target version deleted (
5.0.0)
- Status changed from Reopened to Closed
- Resolution set to Fixed
Committed as a part of #29914.
Also available in: Atom
PDF