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
/
game.rb
diff --git
a/app/models/game.rb
b/app/models/game.rb
index
9880b04
..
4991aa9
100644
(file)
--- a/
app/models/game.rb
+++ b/
app/models/game.rb
@@
-1,7
+1,4
@@
-class Game < ActiveRecord::Base
- has_one :rentable
-
- validates_presence_of :title
- validates_presence_of :genre
+class Game < Rentable
+ validates_presence_of :game_genre
validates_presence_of :platform
end
validates_presence_of :platform
end