debian-mirror-gitlab/app/models/group_custom_attribute.rb
2018-11-18 11:00:15 +05:30

8 lines
206 B
Ruby

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