summaryrefslogtreecommitdiff
path: root/app/models/group_custom_attribute.rb
blob: 5ac6e5f2550b2ac501ef71566709fabcc180edfd (plain)
1
2
3
4
5
6
7
8
# frozen_string_literal: true

class GroupCustomAttribute < ApplicationRecord
  belongs_to :group

  validates :group, :key, :value, presence: true
  validates :key, uniqueness: { scope: [:group_id] }
end