gitlab-org--gitlab-foss/app/models/group_custom_attribute.rb
2017-11-06 10:51:50 +01:00

6 lines
175 B
Ruby

class GroupCustomAttribute < ActiveRecord::Base
belongs_to :group
validates :group, :key, :value, presence: true
validates :key, uniqueness: { scope: [:group_id] }
end