-
-
Notifications
You must be signed in to change notification settings - Fork 47
MissingUniqueIndexChecker
Evgeniy Demin edited this page Nov 25, 2022
·
1 revision
Imagine your model has a validates :email, uniqueness: true
validation but has no unique index in the database. As a general problem, your validation can be skipped or there are possible duplicates inserted because of race conditions. To keep your data consistent you should cover your validation with a proper unique index in the database (if possible). It will ensure you don't have duplicates.
If the project helps you or your organization, I would be very grateful if you contribute or donate. Your support is an incredible motivation and the biggest reward for my hard work.
- Home
- Installation
- How to run?
- Configuration
- Auto correction
- Integrations
- Implementing Custom Checker
- Checkers
- ColumnPresenceChecker
- LengthConstraintChecker
- NullConstraintChecker
- UniqueIndexChecker
- ForeignKeyChecker
- MissingUniqueIndexChecker
- MissingIndexChecker
- PrimaryKeyTypeChecker
- ForeignKeyTypeChecker
- RedundantIndexChecker
- RedundantUniqueIndexChecker
- EnumTypeChecker
- ForeignKeyCascadeChecker
- EnumValueChecker
- CaseSensitiveUniqueValidationChecker
- ThreeStateBooleanChecker
- MissingAssociationClassChecker
- MissingTableChecker
- ImplicitOrderingChecker
- FAQ
- Development