class AddPriceDocumentIdToPPayments < ActiveRecord::Migration[6.0]
  def change
    add_column :p_payments, :cc_total_affected, :decimal,   :precision => 14,   :scale => 2
    add_column :p_payments, :ac_total_affected, :decimal,   :precision => 14,   :scale => 2
    add_column :p_payments, :cc_reste_to_affect, :decimal,   :precision => 14,   :scale => 2
    add_column :p_payments, :ac_reste_to_affect, :decimal,   :precision => 14,   :scale => 2
    add_column :p_payments, :cc_affected, :boolean, :default => false
    add_column :p_payments, :ac_affected, :boolean, :default => false
    
    add_column :p_payments, :price_document_id, :integer
  
    
    
  end
end
