belongs_to a single instance of model
This commit is contained in:
parent
1c0a313fdb
commit
64113790cf
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
class Order < ActiveRecord::Base
|
||||
belongs_to :users
|
||||
belongs_to :user
|
||||
has_many :order_products
|
||||
has_many :products, through: :order_products
|
||||
|
||||
|
|
Loading…
Reference in a new issue