Sha256: f17a3619e6178a9982a9e676405722922f718c5601ad6e7eb783a276693b6c24

Contents?: true

Size: 617 Bytes

Versions: 6

Compression:

Stored size: 617 Bytes

Contents

class CreateDesktopAppConsole
  def self.up
    app = DesktopApplication.create(
      :description => 'Compass Console',
      :icon => 'icon-console',
      :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.CompassAeConsole',
      :internal_identifier => 'compass_ae_console',
      :shortcut_id => 'compass_console-win'
    )
    
    app.preference_types << PreferenceType.iid('desktop_shortcut')
    app.preference_types << PreferenceType.iid('autoload_application')
    app.save
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
compass_ae_console-3.0.0 db/data_migrations/20110824020426_create_desktop_app_console.rb
compass_ae_console-2.0.0 db/data_migrations/20110824020426_create_desktop_app_console.rb
compass_ae_console-1.0.4 db/data_migrations/20110824020426_create_desktop_app_console.rb
compass_ae_console-1.0.2 db/data_migrations/20110824020426_create_desktop_app_console.rb
compass_ae_console-1.0.1 db/data_migrations/20110824020426_create_desktop_app_console.rb
compass_ae_console-1.0.0 db/data_migrations/20110824020426_create_desktop_app_console.rb