Sha256: 39754124e3b9450dfc8fe4609963e133c570cf5ef8ae096da4309d4d615a71f7
Contents?: true
Size: 542 Bytes
Versions: 52
Compression:
Stored size: 542 Bytes
Contents
class BillingMachineAddPdfFile < ActiveRecord::Migration[5.0] def change add_column :dorsale_billing_machine_invoices, :pdf_file, :string add_column :dorsale_billing_machine_quotations, :pdf_file, :string Dorsale::ApplicationRecord.reset_column_information Dorsale::BillingMachine::Invoice.all.each do |invoice| Dorsale::BillingMachine::PdfFileGenerator.(invoice) end Dorsale::BillingMachine::Quotation.all.each do |quotation| Dorsale::BillingMachine::PdfFileGenerator.(quotation) end end end
Version data entries
52 entries across 52 versions & 1 rubygems