module Sandstone::ORM::Associations
Direct including types
Defined in:
sandstone/associations.crMacro Summary
-
belongs_to(model_name)
define getter and setter for parent relationship
- has_many(children_table)
-
has_many(children_table, through)
define getter for related children
- has_some(children_class_name)
- has_some(children_class_name, through)
- owned_by(parent_class_name, column = nil)