X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=db%2Fmigrate%2F026_drop_bitems.rb;fp=db%2Fmigrate%2F026_drop_bitems.rb;h=049297a7d419bcb3fa8948526ec0b1ff1f5a5d73;hb=9145563a8d27360910c3de21b088f68283f33ba3;hp=0000000000000000000000000000000000000000;hpb=f96a0f6949f29078cd2c5e3c81d3ac48ac710fbe;p=cs356-p2-videostore.git diff --git a/db/migrate/026_drop_bitems.rb b/db/migrate/026_drop_bitems.rb new file mode 100644 index 0000000..049297a --- /dev/null +++ b/db/migrate/026_drop_bitems.rb @@ -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