Add Bitem (bought items) MVC
[cs356-p2-videostore.git] / db / migrate / 015_create_bitems.rb
diff --git a/db/migrate/015_create_bitems.rb b/db/migrate/015_create_bitems.rb
new file mode 100644 (file)
index 0000000..641c2c9
--- /dev/null
@@ -0,0 +1,13 @@
+class CreateBitems < ActiveRecord::Migration
+  def self.up
+    create_table :bitems do |t|
+      t.column :customer_id, :integer, :null => false
+      t.column :merchandise_id, :integer, :null => false
+      t.column :date, :date, :null => false
+    end
+  end
+
+  def self.down
+    drop_table :bitems
+  end
+end