gitlab-org--gitlab-foss/app/models/group_custom_attribute.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
205 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
class GroupCustomAttribute < ApplicationRecord
2017-09-18 15:07:38 +00:00
belongs_to :group
validates :group, :key, :value, presence: true
validates :key, uniqueness: { scope: [:group_id] }
end