Sha256: eff1f619edabfb8ed3c75af9bd27fd5dbbcf3c534a946be626a515c84899becf
Contents?: true
Size: 733 Bytes
Versions: 12
Compression:
Stored size: 733 Bytes
Contents
# This migration comes from erp_orders (originally 20110728201731) class CreateDesktopAppOrderManager def self.up app = DesktopApplication.create( :description => 'Orders', :icon => 'icon-package', :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.OrderManager', :internal_identifier => 'order_manager', :shortcut_id => 'order_manager-win' ) pt = PreferenceType.iid('desktop_shortcut') pt.preferenced_records << app pt.save pt = PreferenceType.iid('autoload_application') pt.preferenced_records << app pt.save app.save end def self.down DesktopApplication.destroy_all(:conditions => ['internal_identifier = ?','hello_world']) end end
Version data entries
12 entries across 12 versions & 7 rubygems