diff options
Diffstat (limited to 'app/models/ci/build.rb')
-rw-r--r-- | app/models/ci/build.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 00a39728436..83ede2867cc 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -193,8 +193,7 @@ module Ci acts_as_taggable - add_authentication_token_field :token, - encrypted: -> { Gitlab::Ci::Features.require_builds_token_encryption? ? :required : :optional } + add_authentication_token_field :token, encrypted: :required before_save :ensure_token before_destroy { unscoped_project } |