class AddComptantToPCustomerSheets < ActiveRecord::Migration
  def change
    add_column :p_customer_sheets, :comptant, :boolean, :default => true
    add_column :p_customer_sheets, :acompte, :boolean, :default => false
    add_column :p_customer_sheets, :acompte_percent, :decimal
    
    add_column :p_customer_sheets, :payment_delais, :integer
    add_column :p_customer_sheets, :payment_fin_de_mois, :boolean, :default => false
    add_column :p_customer_sheets, :paid_start_at, :datetime
    
    
    add_column :p_customer_sheets, :paid, :boolean, :default => false
    add_column :p_customer_sheets, :paid_at, :datetime
  end
end
