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

Add new Rails/IndexNames cop #1380

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 23, 2024

  1. Add new Rails/IndexNames cop

    This cop enforces the standard index naming provided by Rails, allowing developers to enjoy a standardized schema.
    
    A bonus impact of following this convention is that fully duplicated indexes are prevented by default.
    
    Custom index names were once a required workaround for default names that were too long for various database implementations. That could happen because of long table names, long field names, or long lists of compound index keys.
    
    However, that problem has been fully resolved. The current automated naming approach will deterministically abbreviate indexes that would have been too long before.
    corsonknowles committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    4ed9705 View commit details
    Browse the repository at this point in the history