class AddFieldsToTickets < ActiveRecord::Migration[6.1]
  def change

    add_column :tickets, :payment_type, :integer, default: 0, comment: "0 Efectivo | 1 Tarjeta | 2 Transferencia"
    add_column :tickets, :witness, :string, default: ""

    add_column :products, :sku, :string, default: ""
    add_column :products, :flavour, :string, default: ""
    add_column :products, :brand, :string, default: ""
    add_column :products, :family, :string, default: ""
    add_column :products, :active, :boolean, default: true
    add_column :purchased_items, :discount, :float, default: 0.0
  end
end