Skip to content

Instantly share code, notes, and snippets.

@vividtone
Created July 14, 2021 02:36
Show Gist options
  • Save vividtone/b0d44003986a97fb9a05adc489ad1762 to your computer and use it in GitHub Desktop.
Save vividtone/b0d44003986a97fb9a05adc489ad1762 to your computer and use it in GitHub Desktop.
Redmine: get API keys of all active users
export RAILS_ENV=production
bin/rails r 'User.active.each {|u| puts [u.id, u.login, u.api_key].join("\t")}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment