Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created May 8, 2009 18:29
Show Gist options
  • Save edavis10/108915 to your computer and use it in GitHub Desktop.
Save edavis10/108915 to your computer and use it in GitHub Desktop.
desc 'Resets all user passwords to test'
namespace :lss do
task :reset_passwords => :environment do
User.find(:all).each do |user|
puts "User #{user.login}"
user.password = 'test'
user.password_confirmation = 'test'
user.save!
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment