references(*args)
Instance Public methods
Adds a reference. Optionally adds a type
column, if
:polymorphic
option is provided. references
and
belongs_to
are acceptable.
1 2 | t.references( :user ) t.belongs_to( :supplier , polymorphic: true ) |
Please login to continue.