module Sandstone::ORM::Associations

Direct including types

Defined in:

sandstone/associations.cr

Macro Summary

Macro Detail

macro belongs_to(model_name) #

define getter and setter for parent relationship


[View source]
macro has_many(children_table) #

[View source]
macro has_many(children_table, through) #

define getter for related children


[View source]
macro has_some(children_class_name) #

[View source]
macro has_some(children_class_name, through) #

[View source]
macro owned_by(parent_class_name, column = nil) #

[View source]