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

Version Path
dorsale-4.0.0 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.20.0 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.19.1 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.19.0 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.18.0 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.17.0 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.16.0 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.15.0 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.14.11 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.14.10 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.14.9 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.14.8 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.14.7 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.14.6 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.14.5 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.14.4 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.14.3 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.14.2 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.14.1 db/migrate/20170127155636_billing_machine_add_pdf_file.rb
dorsale-3.14.0 db/migrate/20170127155636_billing_machine_add_pdf_file.rb