qi6_app/db/migrate/20180822164311_add_caches_to_p_documents.rb
2019-05-17 12:30:45 +02:00

10 lines
427 B
Ruby

class AddCachesToPDocuments < ActiveRecord::Migration[6.0]
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