1 # == Schema Information
5 # way_id :bigint(8) not null, primary key
6 # k :string not null, primary key
8 # version :bigint(8) not null, primary key
12 # way_tags_id_fkey (["way_id", "version"] => ways.["way_id", "version"])
15 class OldWayTag < ApplicationRecord
16 self.table_name = "way_tags"
18 belongs_to :old_way, :query_constraints => [:way_id, :version], :inverse_of => :old_tags
20 validates :old_way, :associated => true
21 validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }, :characters => true
22 validates :k, :uniqueness => { :scope => [:way_id, :version] }