Add RentablePolicy, to get set up for adding policies
[cs356-p2-videostore.git] / db / schema.rb
index 2e0f138..8132da3 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 => 19) do
+ActiveRecord::Schema.define(:version => 21) do
 
   create_table "bitems", :force => true do |t|
     t.column "customer_id",    :integer, :null => false
@@ -33,7 +33,7 @@ ActiveRecord::Schema.define(:version => 19) do
   end
 
   create_table "merchandises", :force => true do |t|
-    t.column "name",     :string,                                                 :null => false
+    t.column "title",    :string,                                                 :null => false
     t.column "quantity", :integer,                               :default => 0,   :null => false
     t.column "price",    :decimal, :precision => 8, :scale => 2, :default => 0.0
   end
@@ -48,6 +48,12 @@ ActiveRecord::Schema.define(:version => 19) do
     t.column "quantity",       :integer
   end
 
+  create_table "rentable_policies", :force => true do |t|
+    t.column "name",        :string,  :null => false
+    t.column "value",       :integer
+    t.column "description", :string,  :null => false
+  end
+
   create_table "rentables", :force => true do |t|
     t.column "type",        :string
     t.column "title",       :string