blob: 22f14885657a57f80de07b045441dc0e1d5c7d7e (
plain)
1
2
3
4
5
6
7
8
|
# frozen_string_literal: true
class GroupCustomAttribute < ActiveRecord::Base
belongs_to :group
validates :group, :key, :value, presence: true
validates :key, uniqueness: { scope: [:group_id] }
end
|