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
@@ -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