Commit 6e40d109 authored by Shinya Maeda's avatar Shinya Maeda

Merge branch 'add-comment-on-creator-id-on-deploy-tokens' into 'master'

Add comment on creator_id on Deploy Tokens

See merge request gitlab-org/gitlab!85158
parents fafb440d acc70b69
......@@ -14,6 +14,9 @@ class DeployToken < ApplicationRecord
default_value_for(:expires_at) { Forever.date }
# Do NOT use this `user` for the authentication/authorization of the deploy tokens.
# It's for the auditing purpose on Credential Inventory, only.
# See https://gitlab.com/gitlab-org/gitlab/-/issues/353467#note_859774246 for more information.
belongs_to :user, foreign_key: :creator_id, optional: true
has_many :project_deploy_tokens, inverse_of: :deploy_token
......
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