Redmine/db/migrate/20091221004949_add_api_keys...

14 lines
271 B
Ruby
Raw Normal View History

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