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

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