Run this from a rails console to anonymize all users except staff:
acting_user = User.find(-1)
User.all.each do |u|
next if u.staff?
user = UserAnonymizer.new(u, acting_user).make_anonymous
end
Run this from a rails console to anonymize all users except staff:
acting_user = User.find(-1)
User.all.each do |u|
next if u.staff?
user = UserAnonymizer.new(u, acting_user).make_anonymous
end