Method: Sequel::Model::Associations::ClassMethods#one_to_many
- Defined in:
- lib/sequel/model/associations.rb
#one_to_many(name, opts = OPTS, &block) ⇒ Object
Shortcut for adding a one_to_many association, see #associate
2002 2003 2004 |
# File 'lib/sequel/model/associations.rb', line 2002 def one_to_many(name, opts=OPTS, &block) associate(:one_to_many, name, opts, &block) end |