openstreetmap-website/app/models/way_node.rb
Andy Allan a41d500b9f Create an ApplicationRecord for models to inherit from
This is the default for Rails 5+, and also paves the way for
multiple database support.
2019-11-27 11:50:48 +01:00

25 lines
579 B
Ruby

# == Schema Information
#
# Table name: current_way_nodes
#
# way_id :bigint(8) not null, primary key
# node_id :bigint(8) not null
# sequence_id :bigint(8) not null, primary key
#
# Indexes
#
# current_way_nodes_node_idx (node_id)
#
# Foreign Keys
#
# current_way_nodes_id_fkey (way_id => current_ways.id)
# current_way_nodes_node_id_fkey (node_id => current_nodes.id)
#
class WayNode < ApplicationRecord
self.table_name = "current_way_nodes"
self.primary_keys = "way_id", "sequence_id"
belongs_to :way
belongs_to :node
end