Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BasketItem < ActiveRecord::Base
- belongs_to :basket
- validates :basket_id, :seller_id, :gid, :brand, :vendor_code, :name, :cost, :delivery,
- presence: true
- validates_uniqueness_of :basket_id, scope: [:seller_id, :gid]
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement