Files
sx-fc/db/migrate/20231005055250_add_discount_to_sale_items.rb
2023-10-17 16:52:12 +06:30

7 lines
238 B
Ruby

class AddDiscountToSaleItems < ActiveRecord::Migration[5.1]
def change
add_column :sale_items, :discount_type, :string, after: :price
add_column :sale_items, :discount, :decimal, precision: 10, scale: 2, after: :price
end
end