diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 00:09:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 00:09:22 +0300 |
commit | 27d314277bfe7fffec215efa9b1833a23bb82940 (patch) | |
tree | 898c606409718e70579beea62174624f84e28629 /app/models/deploy_token.rb | |
parent | 6b9d3a4e8351e662c4586b24bb152de78ae9e3bf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/deploy_token.rb')
-rw-r--r-- | app/models/deploy_token.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/deploy_token.rb b/app/models/deploy_token.rb index 20e1d802178..3d098406ab1 100644 --- a/app/models/deploy_token.rb +++ b/app/models/deploy_token.rb @@ -24,6 +24,11 @@ class DeployToken < ApplicationRecord message: "can contain only letters, digits, '_', '-', '+', and '.'" } + enum deploy_token_type: { + group_type: 1, + project_type: 2 + } + before_save :ensure_token accepts_nested_attributes_for :project_deploy_tokens |