class ProductVariant
  include SimplyStored::Couch
  include ActiveModel::SerializerSupport
  property :name
  property :position, type: Fixnum, default: 0
  belongs_to :product
  belongs_to :supplier

  view :by_product_id, key: :product_id
end
