Sha256: 8a18b777ce32ff005e8100a0c2a213459c02ac4044f0f0da55954d6710816f7a

Contents?: true

Size: 666 Bytes

Versions: 14

Compression:

Stored size: 666 Bytes

Contents

class CreateJobTrackerDesktopApplication
  def self.up
    app = DesktopApplication.create(
      :description => 'Job Tracker',
      :icon => 'icon-calendar',
      :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.JobTracker',
      :internal_identifier => 'job_tracker',
      :shortcut_id => 'job_tracker-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 = ?','job_tracker'])
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
erp_app-4.0.0 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.16 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.15 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.14 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.13 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.12 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.11 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.10 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.9 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.8 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.7 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.6 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.5 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb
erp_app-3.1.4 db/data_migrations/20121018143910_create_job_tracker_desktop_application.rb