summaryrefslogtreecommitdiff
path: root/app/models/group_custom_attribute.rb
blob: 8157d602d6739f16bac173399140734e42c9cc00 (plain)
1
2
3
4
5
6
class GroupCustomAttribute < ActiveRecord::Base
  belongs_to :group

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