blob: e0ffe8ebbfdb1cd79aa93127bd45dda265204f69 (
plain)
1
2
3
4
5
6
7
8
|
# frozen_string_literal: true
class UserCustomAttribute < ActiveRecord::Base
belongs_to :user
validates :user_id, :key, :value, presence: true
validates :key, uniqueness: { scope: [:user_id] }
end
|