Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid type casting in uniqueness validator #32875

Merged
merged 1 commit into from May 23, 2018
Merged

Conversation

tenderlove
Copy link
Member

Type casting in uniqueness validator is for a string value truncation.
It was removed at #23523.

@rails-bot
Copy link

warning Warning warning

  • Pull requests are usually filed against the master branch for this repo, but this one is against 5-0-stable. Please double check that you specified the right target!

@tenderlove
Copy link
Member Author

Backporting this because truncating binary data is a bad idea.

Type casting in uniqueness validator is for a string value truncation.
It was removed at #23523.
@tenderlove tenderlove merged commit f66019e into 5-0-stable May 23, 2018
@kamipo kamipo deleted the backport-cast-type branch May 24, 2018 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants