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 => ways.way_id)
19 class OldWayNode < ApplicationRecord
20 self.table_name = "way_nodes"
21 self.primary_keys = "way_id", "version", "sequence_id"
23 belongs_to :old_way, :foreign_key => [:way_id, :version]
24 # A bit messy, referring to current nodes and ways, should do for the data browser for now