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