module

RethinkORM::Associations

Instance methods

reset_associations
Source

Macros

belongs_to(parent_class, dependent = :none, create_index = true, association_name = nil, foreign_key = nil, presence = false)

Defines getter and setter for parent relationship

Source
has_many(child_class, collection_name = nil, dependent = :none, foreign_key = nil)

Must be used in conjunction with the belongs_to macro

Source
has_one(child_class, dependent = :none, create_index = false, association_name = nil, presence = false)
Source