1 # == Schema Information
 
   3 # Table name: way_nodes
 
   5 #  way_id      :bigint           not null, primary key
 
   6 #  node_id     :bigint           not null
 
   7 #  version     :bigint           not null, primary key
 
   8 #  sequence_id :bigint           not null, primary key
 
  12 #  way_nodes_node_idx  (node_id)
 
  16 #  way_nodes_id_fkey  ([way_id, version] => ways[way_id, version])
 
  19 class OldWayNode < ApplicationRecord
 
  20   self.table_name = "way_nodes"
 
  22   belongs_to :old_way, :foreign_key => [:way_id, :version], :inverse_of => :old_nodes
 
  23   # A bit messy, referring to current nodes and ways, should do for the data browser for now