Created
July 14, 2021 02:36
-
-
Save vividtone/b0d44003986a97fb9a05adc489ad1762 to your computer and use it in GitHub Desktop.
Redmine: get API keys of all active users
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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