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

Version Path
erp_orders-3.1.1 spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
erp_txns_and_accts-3.1.1 spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
erp_commerce-3.1.3 spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
erp_products-3.1.1 spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
erp_commerce-3.1.1 spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
erp_invoicing-3.1.0 spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
erp_financial_accounting-3.1.0 spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
erp_inventory-3.1.0 spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
erp_commerce-3.1.0 spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
erp_txns_and_accts-3.1.0 spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
erp_orders-3.1.0 spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
erp_products-3.1.0 spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb