]> git.openstreetmap.org Git - rails.git/blob - app/models/user_preference.rb
Add frozen_string_literal comments to ruby files
[rails.git] / app / models / user_preference.rb
1 # frozen_string_literal: true
2
3 # == Schema Information
4 #
5 # Table name: user_preferences
6 #
7 #  user_id :bigint           not null, primary key
8 #  k       :string           not null, primary key
9 #  v       :string           not null
10 #
11 # Foreign Keys
12 #
13 #  user_preferences_user_id_fkey  (user_id => users.id)
14 #
15
16 class UserPreference < ApplicationRecord
17   belongs_to :user
18
19   validates :user, :associated => true
20   validates :k, :v, :length => 1..255, :characters => true
21 end