Switch to a single joined table for Videos and Games
authorIra W. Snyder <devel@irasnyder.com>
Thu, 22 Nov 2007 04:18:18 +0000 (20:18 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Thu, 22 Nov 2007 04:18:18 +0000 (20:18 -0800)
commit3650c5f411112965a12718b75ccbedde3186fa15
treef5eeb70297edcd257ae8d4e5c84c24187ef69825
parent28e07f23e1c75f7442dd87caf34f0f47109bf966
Switch to a single joined table for Videos and Games

This is much simpler than the multiple inheritance thing, as well as making
things like getting all of the types and titles much easier.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
12 files changed:
app/controllers/game_controller.rb
app/controllers/video_controller.rb
app/models/game.rb
app/models/rentable.rb
app/models/video.rb
app/views/game/_form.rhtml
app/views/rentable/_form.rhtml
app/views/rentable/list.rhtml
app/views/video/_form.rhtml
db/development.sqlite3
db/migrate/009_rentable_inheritance.rb [new file with mode: 0644]
db/schema.rb