]> git.openstreetmap.org Git - rails.git/blob - app/models/way_node.rb
Merge remote-tracking branch 'upstream/pull/1926'
[rails.git] / app / models / way_node.rb
1 # == Schema Information
2 #
3 # Table name: current_way_nodes
4 #
5 #  way_id      :bigint(8)        not null, primary key
6 #  node_id     :bigint(8)        not null
7 #  sequence_id :bigint(8)        not null, primary key
8 #
9 # Indexes
10 #
11 #  current_way_nodes_node_idx  (node_id)
12 #
13 # Foreign Keys
14 #
15 #  current_way_nodes_id_fkey       (way_id => current_ways.id)
16 #  current_way_nodes_node_id_fkey  (node_id => current_nodes.id)
17 #
18
19 class WayNode < ActiveRecord::Base
20   self.table_name = "current_way_nodes"
21   self.primary_keys = "way_id", "sequence_id"
22
23   belongs_to :way
24   belongs_to :node
25 end