-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Rails/UniqueValidationWithoutIndex generates errors in RuboCop Rails v2.9.1 #419
Comments
Thank you for the feedback. The cop works with db/schema.rb. Can you you please provide db/schema.rb? |
Hi @koic,
|
Hi @koic, I'm working with @sofianegargouri on the same project I hope the details will help EDIT |
Fixes rubocop#419. This PR fixes an error for `Rails/UniqueValidationWithoutIndex` when using a unique index and `check_constraint` that has `nil` first argument.
@sofianegargouri @Lorel Thank you for your information! I confirmed this issue and opened #480. |
…ation_without_index [Fix #419] Fix an error for `Rails/UniqueValidationWithoutIndex`
Hey,
I've just updated RuboCop Rails to the latest version (2.9.1) and the Rails/UniqueValidationWithoutIndex cop is generating some errors.
Expected behavior
RuboCop should return with no errors.
Actual behavior
RuboCop returns with errors.
Steps to reproduce the problem
Use a project that has at least one uniqueness validation and run RuboCop
RuboCop Debug Output
Here's a sample of one of the model files
tag.rb
The text was updated successfully, but these errors were encountered: