expired password last

This commit is contained in:
Marcia
2016-10-06 14:19:48 +02:00
parent 1f72c5cc74
commit 680c0636ed
4 changed files with 9 additions and 19 deletions

View File

@@ -80,7 +80,7 @@ namespace :users do
desc "Update password changed at for existing users"
task update_password_changed_at: :environment do
User.all.each do |user|
user.update(password_changed_at:user.created_at)
user.update(password_changed_at: user.created_at)
end
end