1 # == Schema Information
3 # Table name: way_nodes
5 # way_id :bigint(8) not null, primary key
6 # node_id :bigint(8) not null
7 # version :bigint(8) not null, primary key
8 # sequence_id :bigint(8) 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, :query_constraints => [: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