2018-07-25 05:30:33 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-28 09:17:42 -04:00
|
|
|
class GroupCustomAttribute < ApplicationRecord
|
2017-09-18 11:07:38 -04:00
|
|
|
belongs_to :group
|
|
|
|
|
|
|
|
validates :group, :key, :value, presence: true
|
|
|
|
validates :key, uniqueness: { scope: [:group_id] }
|
|
|
|
end
|