Class: ForeignKeyChecker::BrokenRelationResult

Inherits:
Result
  • Object
show all
Defined in:
lib/foreign_key_checker.rb

Instance Attribute Summary collapse

Attributes inherited from Result

#association, #model

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

#errorObject (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

#messageObject



116
117
118
# File 'lib/foreign_key_checker.rb', line 116

def message
  "#{human_relation} is bloken with error #{error.class.name}: #{error.message}"
end