vulco_app/db/migrate/20191102121531_add_cumul_to_v_contacts.rb
2019-11-03 16:49:49 +01:00

14 lines
725 B
Ruby

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