1 # == Schema Information
3 # Table name: user_preferences
5 # user_id :bigint(8) not null, primary key
6 # k :string not null, primary key
11 # user_preferences_user_id_fkey (user_id => users.id)
14 class UserPreference < ApplicationRecord
17 validates :user, :associated => true
18 validates :k, :v, :length => 1..255, :characters => true