Class: ForeignKeyChecker::Checkers::Relations::JoinResult

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



13
14
15
# File 'lib/foreign_key_checker/checkers/relations.rb', line 13

def message
  "expect { #{model.to_s}.joins(:#{association.name}).first }.to_not raise_exception" if !ok
end