class Product < ActiveRecord::Base
  belongs_to :category
  has_many :carts
  has_many :product_prices
  #has_many :orders

  validates :category, :presence => true

  def get_product_price
    product_prices.get_price()
  end
end
