Class: RaceGuard::IndexIntegrity::MissingIndexViolation
- Inherits:
-
Struct
- Object
- Struct
- RaceGuard::IndexIntegrity::MissingIndexViolation
- Defined in:
- lib/race_guard/index_integrity/comparison_engine.rb
Overview
Match UniquenessValidation rows to unique indexes (Epic 5.3).
require "race_guard/index_integrity/comparison_engine"
Instance Attribute Summary collapse
-
#required_columns ⇒ Object
Returns the value of attribute required_columns.
-
#suggested_migration ⇒ Object
Returns the value of attribute suggested_migration.
-
#table ⇒ Object
Returns the value of attribute table.
-
#validation ⇒ Object
Returns the value of attribute validation.
Instance Method Summary collapse
Instance Attribute Details
#required_columns ⇒ Object
Returns the value of attribute required_columns
12 13 14 |
# File 'lib/race_guard/index_integrity/comparison_engine.rb', line 12 def required_columns @required_columns end |
#suggested_migration ⇒ Object
Returns the value of attribute suggested_migration
12 13 14 |
# File 'lib/race_guard/index_integrity/comparison_engine.rb', line 12 def suggested_migration @suggested_migration end |
#table ⇒ Object
Returns the value of attribute table
12 13 14 |
# File 'lib/race_guard/index_integrity/comparison_engine.rb', line 12 def table @table end |
#validation ⇒ Object
Returns the value of attribute validation
12 13 14 |
# File 'lib/race_guard/index_integrity/comparison_engine.rb', line 12 def validation @validation end |
Instance Method Details
#message ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/race_guard/index_integrity/comparison_engine.rb', line 14 def cols = required_columns.sort.map(&:inspect).join(', ') <<~MSG.strip Missing unique index for #{validation.filename} (table :#{table}) columns [#{cols}] Suggested: #{suggested_migration} MSG end |