Sha256: ecf81a804aa4117b92d1b4408034d5931768997a80353fb167c869614629210b
Contents?: true
Size: 747 Bytes
Versions: 12
Compression:
Stored size: 747 Bytes
Contents
# This migration comes from erp_products (originally 20110728201730) class CreateDesktopAppProductManager def self.up app = DesktopApplication.create( :description => 'Products', :icon => 'icon-product', :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.ProductManager', :internal_identifier => 'product_manager', :shortcut_id => 'product_manager-win' ) pt1 = PreferenceType.iid('desktop_shortcut') pt1.preferenced_records << app pt1.save pt2 = PreferenceType.iid('autoload_application') pt2.preferenced_records << app pt2.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