Sha256: be3203559db9ccab9bb8167ecdb8395472b9d9fc09923e11520dff780c212aea
Contents?: true
Size: 1.01 KB
Versions: 12
Compression:
Stored size: 1.01 KB
Contents
# This migration comes from knitkit (originally 20110816153456) class AddKnitkitApplication def self.up if DesktopApplication.find_by_internal_identifier('knitkit').nil? knikit_app = DesktopApplication.create( :description => 'KnitKit', :icon => 'icon-palette', :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.Knitkit', :internal_identifier => 'knitkit', :shortcut_id => 'knitkit-win' ) knikit_app.preference_types << PreferenceType.iid('desktop_shortcut') knikit_app.preference_types << PreferenceType.iid('autoload_application') knikit_app.save admin_user = User.find_by_username('admin') admin_user.desktop.applications << knikit_app admin_user.save truenorth_user = User.find_by_username('truenorth') truenorth_user.desktop.applications << knikit_app truenorth_user.save end end def self.down DesktopApplication.find_by_internal_identifier('knitkit').destroy end end
Version data entries
12 entries across 12 versions & 3 rubygems