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

class UserCustomAttribute < ApplicationRecord
  belongs_to :user

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