class AddStufToVContact < ActiveRecord::Migration[6.0]
  def change
    add_column :v_contacts, :ac_rate, :decimal, :precision => 14,   :scale => 2
    add_column :v_contacts, :enabled, :boolean, :default => false
    
    add_column :societes, :ac_rate, :decimal, :precision => 14,   :scale => 2
    
    add_column :societes, :ac_cagnotte, :decimal, :precision => 14,   :scale => 2
    
    add_column :societes, :ac_cumul, :decimal, :precision => 14,   :scale => 2
    
    
    add_column :societes, :enabled, :boolean, :default => false
    
    add_column :societes, :last_volume_at, :date
  end
end
