Patch #32897
Rails 6: Pass `case_sensitive: true` option explicitly to the uniqueness validator
Status: | Reopened | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Code cleanup/refactoring | |||
Target version: | 4.2.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.
Related issues
Associated revisions
Fix 'DEPRECATION WARNING: Uniqueness validator will no longer enforce case sensitive comparison in Rails 6.1.' (#32897).
Patch by Marius BALTEANU.
History
#1
Updated by Marius BALTEANU 12 months ago
- Related to Feature #29914: Migrate to Rails 6 added
#2
Updated by Marius BALTEANU 12 months ago
- File 0001-Fix-DEPRECATION-WARNING-Uniqueness-validator-will-no.patch added
Tests results here.
#4
Updated by Marius BALTEANU 12 months ago
- Status changed from Closed to Reopened
Sorry, I've attached a broken patch, please revert it and will post later the correct one.
#5
Updated by Marius BALTEANU 12 months ago
Here is the correct patch, please revert r19478 and commit this one.
#7
Updated by Marius BALTEANU 12 months 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.
#8
Updated by Marius BALTEANU 12 months ago
- File deleted (
0001-Fix-DEPRECATION-WARNING-Uniqueness-validator-will-no.patch)