Add Purchase system
[cs356-p2-videostore.git] / app / models / rentable.rb
index 69ca422..e52af25 100644 (file)
@@ -1,5 +1,6 @@
 class Rentable < ActiveRecord::Base
-  has_many :coitem
+  has_many :coitems
+  has_many :rentable_purchases
 
   validates_presence_of :title
   # don't validate newrelease, false is ok