Class: DatabaseConsistency::Checkers::MissingUniqueIndexChecker
- Inherits:
-
ValidatorChecker
- Object
- BaseChecker
- ValidatorChecker
- DatabaseConsistency::Checkers::MissingUniqueIndexChecker
- Defined in:
- lib/database_consistency/checkers/validator_checkers/missing_unique_index_checker.rb
Overview
This class checks if uniqueness validator has unique index in the database
Constant Summary collapse
- Report =
ReportBuilder.define( DatabaseConsistency::Report, :table_name, :columns )
Instance Attribute Summary
Attributes inherited from ValidatorChecker
#attribute, #model, #validator
Instance Method Summary collapse
Methods inherited from ValidatorChecker
#initialize, #table_or_model_name
Methods inherited from BaseChecker
checker_name, enabled?, #enabled?, #report, #report_if_enabled?
Constructor Details
This class inherits a constructor from DatabaseConsistency::Checkers::ValidatorChecker
Instance Method Details
#column_or_attribute_name ⇒ Object
13 14 15 |
# File 'lib/database_consistency/checkers/validator_checkers/missing_unique_index_checker.rb', line 13 def column_or_attribute_name @column_or_attribute_name ||= Helper.uniqueness_validator_columns(attribute, validator, model).join('+') end |