Fix object relationships between video and rentable
[cs356-p2-videostore.git] / app / models / rentable.rb
index faef2c5..0674d8e 100644 (file)
@@ -1,6 +1,6 @@
 class Rentable < ActiveRecord::Base
-  belongs_to :coitem # FIXME: I hunch this is wrong
+  has_many :coitem
+  belongs_to :video
 
-  validates_presence_of :title
-  validates_presence_of :genre
+  #validates_presence_of :genre
 end