Sha256: f14bbe9330f236b80408372009283145772cdb1482bec0b99110d31ee5269bbf

Contents?: true

Size: 632 Bytes

Versions: 5

Compression:

Stored size: 632 Bytes

Contents

class CreateTailDesktopApplication
  def self.up
    app = DesktopApplication.create(
      :description => 'Tail',
      :icon => 'icon-document_pulse',
      :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.Tail',
      :internal_identifier => 'tail',
      :shortcut_id => 'tail-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 = ?','tail'])
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
erp_app-3.1.16 db/data_migrations/20130703181549_create_tail_desktop_application.rb
erp_app-3.1.15 db/data_migrations/20130703181549_create_tail_desktop_application.rb
erp_app-3.1.14 db/data_migrations/20130703181549_create_tail_desktop_application.rb
erp_app-3.1.13 db/data_migrations/20130703181549_create_tail_desktop_application.rb
erp_app-3.1.12 db/data_migrations/20130703181549_create_tail_desktop_application.rb