Sha256: eb6c41a369f81b3af03d4f67a94211c80239da5245c4f35c36273b372d38c507
Contents?: true
Size: 1.07 KB
Versions: 41
Compression:
Stored size: 1.07 KB
Contents
# This migration comes from erp_app (originally 20110817160743) class AddFileManagerApplication def self.up if DesktopApplication.find_by_internal_identifier('file_manager').nil? file_manager_app = DesktopApplication.create( :description => 'File Manager', :icon => 'icon-folders', :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.FileManager', :internal_identifier => 'file_manager', :shortcut_id => 'file_manager-win' ) file_manager_app.preference_types << PreferenceType.iid('desktop_shortcut') file_manager_app.preference_types << PreferenceType.iid('autoload_application') file_manager_app.save admin_user = User.find_by_username('admin') admin_user.desktop.applications << file_manager_app admin_user.save truenorth_user = User.find_by_username('truenorth') truenorth_user.desktop.applications << file_manager_app truenorth_user.save end end def self.down DesktopApplication.find_by_internal_identifier('file_manager').destroy end end
Version data entries
41 entries across 41 versions & 14 rubygems