Change video's director column to a string
[cs356-p2-videostore.git] / db / schema.rb
index dbb0282..f0435a6 100644 (file)
@@ -2,19 +2,36 @@
 # migrations feature of ActiveRecord to incrementally modify your database, and
 # then regenerate this schema definition.
 
-ActiveRecord::Schema.define(:version => 2) do
+ActiveRecord::Schema.define(:version => 12) do
+
+  create_table "coitems", :force => true do |t|
+    t.column "customer_id", :integer
+    t.column "rentable_id", :integer
+    t.column "out_date",    :date,    :default => '2007-11-21'
+    t.column "due_date",    :date
+  end
 
   create_table "customers", :force => true do |t|
     t.column "name",    :string
-    t.column "address", :string
+    t.column "address", :text,    :limit => 255
     t.column "email",   :string
     t.column "phone",   :string
-    t.column "debt",    :decimal, :precision => 8, :scale => 2, :default => 0.0
+    t.column "debt",    :decimal,                :default => 0.0
   end
 
   create_table "rentables", :force => true do |t|
-    t.column "title", :string
-    t.column "genre", :string
+    t.column "type",        :string
+    t.column "title",       :string
+    t.column "newrelease",  :boolean, :default => false
+    t.column "video_genre", :integer
+    t.column "director",    :string
+    t.column "media",       :integer
+    t.column "game_genre",  :integer
+    t.column "platform",    :integer
+  end
+
+  create_table "videogenres", :force => true do |t|
+    t.column "name", :string, :null => false
   end
 
 end