1 # == Schema Information
 
   3 # Table name: current_way_tags
 
   5 #  way_id :bigint           not null, primary key
 
   6 #  k      :string           default(""), not null, primary key
 
   7 #  v      :string           default(""), not null
 
  11 #  current_way_tags_id_fkey  (way_id => current_ways.id)
 
  14 class WayTag < ApplicationRecord
 
  15   self.table_name = "current_way_tags"
 
  19   validates :way, :associated => true
 
  20   validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }, :characters => true
 
  21   validates :k, :uniqueness => { :scope => :way_id }