Remove Bitem
[cs356-p2-videostore.git] / db / migrate / 026_drop_bitems.rb
diff --git a/db/migrate/026_drop_bitems.rb b/db/migrate/026_drop_bitems.rb
new file mode 100644 (file)
index 0000000..049297a
--- /dev/null
@@ -0,0 +1,13 @@
+class DropBitems < ActiveRecord::Migration
+  def self.up
+    drop_table :bitems
+  end
+
+  def self.down
+    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
+end