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

Fix UniqueValidationWithoutIndex cop when validating uniqueness on a polymorphic relation scope #517

Merged
merged 1 commit into from
Jul 6, 2021
Merged

Fix UniqueValidationWithoutIndex cop when validating uniqueness on a polymorphic relation scope #517

merged 1 commit into from
Jul 6, 2021

Conversation

theunraveler
Copy link
Contributor

This PR fixes the UniqueValidationWithoutIndex cop when the scope of the uniqueness constraint is a polymorphic association. The issue detailed in #231 (comment).

Thanks!

@koic
Copy link
Member

koic commented Jul 6, 2021

Can you add a reproduction spec for the issue?

@theunraveler
Copy link
Contributor Author

Sure, just added a spec.

@theunraveler
Copy link
Contributor Author

Also, just pushed some fixes to make rubocop happy.

@koic
Copy link
Member

koic commented Jul 6, 2021

Nice! Can you add a changelog entry to the CHANGELOG.md?

@theunraveler
Copy link
Contributor Author

Done! Thanks for the guidance.

@koic koic merged commit 4a3519b into rubocop:master Jul 6, 2021
@koic
Copy link
Member

koic commented Jul 6, 2021

Great! Thank you!

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

2 participants