This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/lib/tasks/confirm_and_approve_users.rake

6 lines
212 B
Ruby
Raw Permalink Normal View History

namespace :confirm_and_approve do
task :existing_users => :environment do
users = User.update_all({:confirmation_token => nil, :confirmed_at => Time.now, :approved => true})
puts "Users Updated"
end
end