You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
class SetAuthTokenForExistingUsers < ActiveRecord::Migration
|
|
def up
|
|
User.find_each do |user|
|
|
user.update_attribute(:auth_token, SecureRandom.urlsafe_base64)
|
|
end
|
|
end
|
|
|
|
def down
|
|
end
|
|
end
|