Sha256: 80881b6ea391b67f90f578dd9caa00ebc9d688ef405035e444edec999232af34

Contents?: true

Size: 804 Bytes

Versions: 37

Compression:

Stored size: 804 Bytes

Contents

# This migration comes from erp_app (originally 20120418164215)
class CreateConfigurationManagementDesktopApplication
  def self.up
    app = DesktopApplication.create(
      :description => 'Configuration Management',
      :icon => 'icon-grid',
      :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.ConfigurationManagement',
      :internal_identifier => 'configuration_management',
      :shortcut_id => 'configuration_management-win'
    )
    pt1 = PreferenceType.iid('desktop_shortcut')
    pt1.preferenced_records << app
    pt1.save

    pt2 = PreferenceType.iid('autoload_application')
    pt2.preferenced_records << app
    pt2.save
  end

  def self.down
    DesktopApplication.destroy_all(['internal_identifier = ?','configuration_management'])
  end
end

Version data entries

37 entries across 37 versions & 14 rubygems

Version Path
erp_app-3.1.2 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_app-3.0.16 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_app-3.1.1 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
rails_db_admin-2.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
knitkit-2.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_search-3.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_rules-3.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_invoicing-3.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_forms-2.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_financial_accounting-3.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
compass_ae_console-2.0.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_inventory-3.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_commerce-3.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_txns_and_accts-3.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_orders-3.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_products-3.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_app-3.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb