Sha256: f6c8ad674ec4016363bad95fd3e62b27ddc01d4ea4c70d363b90cd3cdffcbec1
Contents?: true
Size: 735 Bytes
Versions: 7
Compression:
Stored size: 735 Bytes
Contents
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
7 entries across 7 versions & 1 rubygems