class AddCumulToVContacts < ActiveRecord::Migration[6.0]
  def change
    add_column :v_contacts, :rate, :decimal,   :precision => 14,   :scale => 2
    add_column :v_contacts, :cumul, :decimal,   :precision => 14,   :scale => 2
    add_column :v_contacts, :cagnotte, :decimal,   :precision => 14,   :scale => 2
    add_column :v_contacts, :prime, :decimal,   :precision => 14,   :scale => 2
    add_column :v_contacts, :nbr_vidanges, :decimal,   :precision => 14,   :scale => 2
    add_column :v_contacts, :vidanges_seuil, :decimal,   :precision => 14,   :scale => 2
    add_column :v_contacts, :vidanges_offerte, :decimal,   :precision => 14,   :scale => 2
    add_column :v_contacts, :last_volume_at, :date
    
  end
end
