Class: ForeignKeyChecker::Checkers::Relations::ErrorResult

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

Instance Attribute Summary

Attributes inherited from Result

#association, #error, #fk, #model, #ok, #table

Instance Method Summary collapse

Methods inherited from Result

#initialize

Constructor Details

This class inherits a constructor from ForeignKeyChecker::Checkers::Relations::Result

Instance Method Details

#messageObject



18
19
20
# File 'lib/foreign_key_checker/checkers/relations.rb', line 18

def message
  "`#{model.to_s}##{association.name}` is broken\n#{error.class.to_s}\n#{error.message}\n#{error.backtrace.join("\n")}" if !ok
end