From ecc5ac17b8335f2585e6a4ff0b074ce55a828fd3 Mon Sep 17 00:00:00 2001 From: Markus Graf Date: Fri, 31 Mar 2017 18:26:30 +0200 Subject: [PATCH] set passwort for nil sign ins --- lib/setpasswords.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setpasswords.rb b/lib/setpasswords.rb index 455c161..7273344 100644 --- a/lib/setpasswords.rb +++ b/lib/setpasswords.rb @@ -1,4 +1,4 @@ helper = ApplicationController.helpers -never_signed_in = Supporter.where(:sign_in_count.lt => 1) +never_signed_in = Supporter.where(sign_in_count: nil) never_signed_in.each_with_index {|u,i|puts "#{i} #{u.email}"; u.update_attributes password: "#{u.support}#{ helper.number_with_delimiter(u.zip, :delimiter => ',')}"} \ No newline at end of file