Added Rake task to update desktop users to new_ui

This commit is contained in:
saurabhbhatia 2013-08-09 18:44:43 +08:00
parent 6269c6d1e6
commit 76d25882e8
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
namespace :desktop_update do
task :update_users => :environment do
@desktop_user = User.all
@desktop_user.each do |u|
desk = u.desktop
desk.theme = DesktopTheme.first.id.to_s
desk.wallpaper = nil
desk.save!
end
end
end