Module: Dynamoid::Associations::ClassMethods
- Defined in:
- lib/dynamoid/associations.rb
Instance Method Summary (collapse)
-
- (Object) belongs_to(name, options = {})
create a belongs_to association for this document.
-
- (Object) has_and_belongs_to_many(name, options = {})
create a has_and_belongs_to_many association for this document.
-
- (Object) has_many(name, options = {})
create a has_many association for this document.
-
- (Object) has_one(name, options = {})
create a has_one association for this document.
Instance Method Details
- (Object) belongs_to(name, options = {})
create a belongs_to association for this document.
64 65 66 |
# File 'lib/dynamoid/associations.rb', line 64 def belongs_to(name, = {}) association(:belongs_to, name, ) end |
- (Object) has_and_belongs_to_many(name, options = {})
create a has_and_belongs_to_many association for this document.
77 78 79 |
# File 'lib/dynamoid/associations.rb', line 77 def has_and_belongs_to_many(name, = {}) association(:has_and_belongs_to_many, name, ) end |
- (Object) has_many(name, options = {})
create a has_many association for this document.
38 39 40 |
# File 'lib/dynamoid/associations.rb', line 38 def has_many(name, = {}) association(:has_many, name, ) end |
- (Object) has_one(name, options = {})
create a has_one association for this document.
51 52 53 |
# File 'lib/dynamoid/associations.rb', line 51 def has_one(name, = {}) association(:has_one, name, ) end |