projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Switch to a single joined table for Videos and Games
[cs356-p2-videostore.git]
/
app
/
models
/
rentable.rb
diff --git
a/app/models/rentable.rb
b/app/models/rentable.rb
index
0699a20
..
cccbb57
100644
(file)
--- a/
app/models/rentable.rb
+++ b/
app/models/rentable.rb
@@
-1,6
+1,6
@@
class Rentable < ActiveRecord::Base
has_many :coitem
- belongs_to :video
- belongs_to :game
+ validates_presence_of :title
+ # don't validate newrelease, false is ok
end