projects
/
cs356-p2-videostore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add real Gamegenre support
[cs356-p2-videostore.git]
/
db
/
migrate
/
024_create_gamegenres.rb
diff --git a/db/migrate/024_create_gamegenres.rb
b/db/migrate/024_create_gamegenres.rb
new file mode 100644
(file)
index 0000000..
181d45b
--- /dev/null
+++ b/
db/migrate/024_create_gamegenres.rb
@@ -0,0
+1,11
@@
+class CreateGamegenres < ActiveRecord::Migration
+ def self.up
+ create_table :gamegenres do |t|
+ t.column :name, :string, :null => false
+ end
+ end
+
+ def self.down
+ drop_table :gamegenres
+ end
+end