Class: ForeignKeyChecker::Checkers::Relations::HasOneOrManyResult

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



23
24
25
# File 'lib/foreign_key_checker/checkers/relations.rb', line 23

def message
  "expected has_many or has_one association for #{fk.inspect}"
end