module RethinkORM::Associations

Direct including types

Defined in:

rethinkdb-orm/associations.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def reset_associations #

[View source]

Macro Detail

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

Defines getter and setter for parent relationship


[View source]
macro has_many(child_class, collection_name = nil, dependent = :none, foreign_key = nil) #

Must be used in conjunction with the belongs_to macro


[View source]
macro has_one(child_class, dependent = :none, create_index = false, association_name = nil, presence = false) #

[View source]