]> git.openstreetmap.org Git - rails.git/blob - app/models/old_way_node.rb
Add frozen_string_literal comments to ruby files
[rails.git] / app / models / old_way_node.rb
1 # frozen_string_literal: true
2
3 # == Schema Information
4 #
5 # Table name: way_nodes
6 #
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
11 #
12 # Indexes
13 #
14 #  way_nodes_node_idx  (node_id)
15 #
16 # Foreign Keys
17 #
18 #  way_nodes_id_fkey  ([way_id, version] => ways[way_id, version])
19 #
20
21 class OldWayNode < ApplicationRecord
22   self.table_name = "way_nodes"
23
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
26   belongs_to :node
27   belongs_to :way
28 end