Added Rake task to update desktop users to new_ui
This commit is contained in:
parent
6269c6d1e6
commit
76d25882e8
|
@ -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
|
Reference in New Issue