These commands can be used from the GitLab Rails console to extend the expiration date of access tokens.
⚠️ Warning: These commands modify token expiration dates directly in the GitLab database. Use them carefully, especially in production environments. Consider backing up your database and verifying the affected tokens before runningupdate_all.
To extend the expiration date of all personal access tokens belonging to a specific user: