Sha256: 32d7db9ee563605ac94da509c76cd9fdc63d2c02660d387ee95bddeb24ccbaa6

Contents?: true

Size: 666 Bytes

Versions: 9

Compression:

Stored size: 666 Bytes

Contents

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

9 entries across 9 versions & 1 rubygems

Version Path
erp_orders-3.1.1 db/data_migrations/20110728201731_create_desktop_app_order_manager.rb
erp_orders-3.1.0 db/data_migrations/20110728201731_create_desktop_app_order_manager.rb
erp_orders-3.0.6 db/data_migrations/20110728201731_create_desktop_app_order_manager.rb
erp_orders-3.0.5 db/data_migrations/20110728201731_create_desktop_app_order_manager.rb
erp_orders-3.0.4 db/data_migrations/20110728201731_create_desktop_app_order_manager.rb
erp_orders-3.0.3 db/data_migrations/20110728201731_create_desktop_app_order_manager.rb
erp_orders-3.0.2 db/data_migrations/20110728201731_create_desktop_app_order_manager.rb
erp_orders-3.0.1 db/data_migrations/20110728201731_create_desktop_app_order_manager.rb
erp_orders-3.0.0 db/data_migrations/20110728201731_create_desktop_app_order_manager.rb