Add Purchase system
[cs356-p2-videostore.git] / app / models / customer.rb
index 11411bb..aba5044 100644 (file)
@@ -1,5 +1,8 @@
 class Customer < ActiveRecord::Base
-  belongs_to :coitem # FIXME: I hunch this is wrong
+  has_many :coitems
+  has_many :bitems
+  has_many :merchandise_purchases
+  has_many :rentable_purchases
 
   validates_presence_of :name, :email, :phone, :address
   validates_numericality_of :debt