intra_app/db/migrate/20180822164311_add_caches_to_p_documents.rb
Nicolas Bally 761e075bb6 initial
2018-11-08 21:47:30 +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