Class: ForeignKeyChecker::BrokenRelationResult
- Defined in:
- lib/foreign_key_checker.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Attributes inherited from Result
Instance Method Summary collapse
Methods inherited from Result
#from_column, #from_table, #human_relation, #initialize, #inspect, #nullable?, #to_column, #to_table
Constructor Details
This class inherits a constructor from ForeignKeyChecker::Result
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
115 116 117 |
# File 'lib/foreign_key_checker.rb', line 115 def error @error end |
Instance Method Details
#message ⇒ Object
116 117 118 |
# File 'lib/foreign_key_checker.rb', line 116 def "#{human_relation} is bloken with error #{error.class.name}: #{error.message}" end |