debian-mirror-gitlab/app/models/members/member_role.rb
2022-08-27 11:52:29 +05:30

9 lines
248 B
Ruby

# frozen_string_literal: true
class MemberRole < ApplicationRecord # rubocop:disable Gitlab/NamespacedClass
has_many :members
belongs_to :namespace
validates :namespace_id, presence: true
validates :base_access_level, presence: true
end