Created
September 12, 2017 14:54
-
-
Save Levii01/c46dbf55feb9ad6aaf9c04e0a3da54c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Account.where(token: nil).each do |account| | |
account.token = SecureRandom.uuid | |
account.save!(validate: false) | |
end | |
Account.where(token: nil).size |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment