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
knitkit-2.1.14 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
knitkit-2.1.13 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_forms-3.1.1 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
knitkit-2.1.12 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_orders-3.1.1 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
knitkit-2.1.9 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
knitkit-2.1.8 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_forms-3.1.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_app-3.1.9 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
knitkit-2.1.7 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_txns_and_accts-3.1.1 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_commerce-3.1.3 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
knitkit-2.1.5 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_app-3.1.6 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_products-3.1.1 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_commerce-3.1.1 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_search-3.1.1 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
rails_db_admin-2.1.1 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
knitkit-2.1.1 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
erp_forms-3.0.0 spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb