Add the game mvc
[cs356-p2-videostore.git] / db / schema.rb
index c773ea1..544fb07 100644 (file)
@@ -2,7 +2,7 @@
 # migrations feature of ActiveRecord to incrementally modify your database, and
 # then regenerate this schema definition.
 
-ActiveRecord::Schema.define(:version => 4) do
+ActiveRecord::Schema.define(:version => 6) do
 
   create_table "coitems", :force => true do |t|
     t.column "customer_id", :integer
@@ -19,8 +19,14 @@ ActiveRecord::Schema.define(:version => 4) do
     t.column "debt",    :decimal, :precision => 8, :scale => 2, :default => 0.0
   end
 
+  create_table "games", :force => true do |t|
+    t.column "title",       :string
+    t.column "platform",    :integer
+    t.column "genre",       :integer
+    t.column "rentable_id", :integer
+  end
+
   create_table "rentables", :force => true do |t|
-    t.column "title", :string
     t.column "genre", :string
   end
 
@@ -29,6 +35,7 @@ ActiveRecord::Schema.define(:version => 4) do
     t.column "newrelease",  :boolean, :default => false
     t.column "director",    :string
     t.column "genre",       :integer
+    t.column "title",       :string
   end
 
 end