coton_app/db/migrate/20180822164311_add_caches_to_p_documents.rb
2018-12-15 14:06:53 +01:00

10 lines
422 B
Ruby

class AddCachesToPDocuments < ActiveRecord::Migration
def change
add_column :p_documents, :cache_total_ht, :decimal, precision: 14, scale: 4
add_column :p_documents, :cache_total_ttc, :decimal, precision: 14, scale: 4
add_column :p_documents, :cache_tva, :decimal, precision: 14, scale: 4
add_column :p_documents, :payment_days, :integer
add_column :p_documents, :cache_exp_date, :datetime
end
end