class ChangePreSaleColumns < ActiveRecord::Migration
  def change
  	remove_column :pre_sales, :quantity
  	remove_column :pre_sales, :amount
  	remove_column :pre_sales, :tax
  	remove_column :pre_sales, :discount
  	remove_column :pre_sales, :total

    add_column :pre_sales, :quantity, :decimal, null: false, default: 0
    add_column :pre_sales, :amount, :decimal, null: false, default: 0
    add_column :pre_sales, :tax, :decimal, null: false, default: 0
    add_column :pre_sales, :discount, :decimal, null: false, default: 0
    add_column :pre_sales, :total, :decimal, null: false, default: 0

  end
end
