set passwort for nil sign ins

This commit is contained in:
2017-03-31 18:26:30 +02:00
parent 74193ab3cf
commit ecc5ac17b8
+1 -1
View File
@@ -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 => ',')}"}