diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-12 21:09:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-12 21:09:28 +0300 |
commit | ce8a0b90849ac5d1895e741c023432930f24d724 (patch) | |
tree | dbdc97de542cdbe18a2fc8b1a6b64ac0673ed3d3 /app/models/user_highest_role.rb | |
parent | dc889678d1de8c09310b2f8f9742bb6c78a6f1a4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/user_highest_role.rb')
-rw-r--r-- | app/models/user_highest_role.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/user_highest_role.rb b/app/models/user_highest_role.rb new file mode 100644 index 00000000000..dc166273787 --- /dev/null +++ b/app/models/user_highest_role.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class UserHighestRole < ApplicationRecord + belongs_to :user, optional: false + + validates :highest_access_level, allow_nil: true, inclusion: { in: Gitlab::Access.all_values } +end |