RethinkORM::Associations
Instance methods
reset_associations
SourceMacros
belongs_to(parent_class, dependent = :none, create_index = true, association_name = nil, foreign_key = nil, presence = false)
Defines getter and setter for parent relationship
has_many(child_class, collection_name = nil, dependent = :none, foreign_key = nil)
Must be used in conjunction with the belongs_to macro
has_one(child_class, dependent = :none, create_index = false, association_name = nil, presence = false)
Source