Can the joins table created by a has_many :through relation also have a has_many relation?

21 views Asked by At

The model created by the has_many through relation would look like this:

class MerchantOrder < ActiveRecord::Base
  belongs_to :order
  belongs_to :user
  has_many :products
end

But I am not sure if this is possible. Any reason why this wouldn't work?

0

There are 0 answers