Commit edab0f0c authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Do not mass create API keys for existing users.

They will be created on the fly if needed, just like for new users.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3221 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent bfcd5039
class AddApiKeysForUsers < ActiveRecord::Migration
def self.up
say_with_time("Generating API keys for active users") do
User.active.all(:include => :api_token).each do |user|
user.api_key
end
end
end
def self.down
# No-op
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment