Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_highest_role.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dc166273787b30a1e51e0e72e9fad0e17cd35663 (plain)
1
2
3
4
5
6
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