Defect #32897
closedRails 6: Pass `case_sensitive: true` option explicitly to the uniqueness validator
0%
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.
Files
Related issues
Updated by Marius BĂLTEANU almost 5 years ago
- Related to Feature #29914: Migrate to Rails 6.1 with Zeitwerk autoloading added
Updated by Marius BĂLTEANU almost 5 years ago
- File 0001-Fix-DEPRECATION-WARNING-Uniqueness-validator-will-no.patch added
Tests results here.
Updated by Go MAEDA almost 5 years ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
Committed the patch. Thank you for your contribution.
Updated by Marius BĂLTEANU almost 5 years ago
- Status changed from Closed to Reopened
Sorry, I've attached a broken patch, please revert it and will post later the correct one.
Updated by Marius BĂLTEANU almost 5 years ago
- File 0001-Fix-DEPRECATION-WARNING-Uniqueness-validator-will-no.patch 0001-Fix-DEPRECATION-WARNING-Uniqueness-validator-will-no.patch added
Here is the correct patch, please revert r19478 and commit this one.
Updated by Go MAEDA almost 5 years ago
Marius BALTEANU wrote:
Sorry, I've attached a broken patch, please revert it and will post later the correct one.
Done.
Updated by Marius BĂLTEANU almost 5 years ago
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.
Updated by Marius BĂLTEANU almost 5 years ago
- File deleted (
0001-Fix-DEPRECATION-WARNING-Uniqueness-validator-will-no.patch)
Updated by Marius BĂLTEANU over 3 years ago
- Target version changed from 4.2.0 to 5.0.0
We can fix this in 5.0.0.
Updated by Marius BĂLTEANU over 3 years ago
Go MAEDA, is anything I can do to have this change committed?
Updated by Marius BĂLTEANU over 3 years ago
- Tracker changed from Patch to Defect
Updated by Go MAEDA over 3 years ago
- Status changed from Reopened to Closed
- Resolution set to Fixed
Committed as a part of #29914.