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