Sha256: f206bb020fe1aeb7f43873ecd4eb83c9b504785b2b001857ca3632a494ea010c
Contents?: true
Size: 805 Bytes
Versions: 1
Compression:
Stored size: 805 Bytes
Contents
# This migration comes from erp_invoicing (originally 20120118181839) class CreateInvoiceManagementDesktopApplication def self.up app = DesktopApplication.create( :description => 'Invoice Management', :icon => 'icon-creditcards', :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.InvoiceManagement', :internal_identifier => 'invoice_management', :shortcut_id => 'invoice_management-win' ) app.save pt1 = PreferenceType.iid('desktop_shortcut') pt1.preferenced_records << app pt1.save pt2 = PreferenceType.iid('autoload_application') pt2.preferenced_records << app pt2.save end def self.down DesktopApplication.destroy_all(['internal_identifier = ?','invoice_management']) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_invoicing-3.1.0 | spec/dummy/db/data_migrations/20120118181839_create_invoice_management_desktop_application.erp_invoicing.rb |