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.
11 lines
205 B
Ruby
11 lines
205 B
Ruby
11 years ago
|
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
|