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.
asciinema.org/db/migrate/20131022165054_set_auth_tok...

11 lines
205 B
Ruby

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