1 # frozen_string_literal: true
 
   3 # == Schema Information
 
   5 # Table name: user_preferences
 
   7 #  user_id :bigint           not null, primary key
 
   8 #  k       :string           not null, primary key
 
  13 #  user_preferences_user_id_fkey  (user_id => users.id)
 
  16 class UserPreference < ApplicationRecord
 
  19   validates :user, :associated => true
 
  20   validates :k, :v, :length => 1..255, :characters => true