Sha256: 5156e0b0e6f96f7ddbbba8fcd7d78e5cb79c1017a427ade3d872360b4a1db44c
Contents?: true
Size: 661 Bytes
Versions: 2
Compression:
Stored size: 661 Bytes
Contents
class AddInvoiceTrackedStatuses def self.up invoice_statuses = TrackedStatusType.find_or_create('invoice_statuses', 'Invoice Statuses') TrackedStatusType.find_or_create('invoice_statuses_open', 'Open', invoice_statuses) TrackedStatusType.find_or_create('invoice_statuses_hold', 'Hold', invoice_statuses) TrackedStatusType.find_or_create('invoice_statuses_sent', 'Sent', invoice_statuses) TrackedStatusType.find_or_create('invoice_statuses_closed', 'Closed', invoice_statuses) end def self.down status = TrackedStatusType.where(internal_identifier: 'invoice_statuses').first if status status.destroy end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
erp_invoicing-4.2.0 | db/data_migrations/20160117135959_add_invoice_tracked_statuses.rb |
erp_invoicing-4.1.0 | db/data_migrations/20160117135959_add_invoice_tracked_statuses.rb |