X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/effb1b7f4170bb7244c4dfffcbe6134fe00e2bc4..54aa89a4bf8118a3fdec2d60acba6aeb7beaa8c8:/app/models/way_node.rb diff --git a/app/models/way_node.rb b/app/models/way_node.rb index 5c09cd740..c57d3be79 100644 --- a/app/models/way_node.rb +++ b/app/models/way_node.rb @@ -2,9 +2,9 @@ # # Table name: current_way_nodes # -# way_id :integer not null, primary key -# node_id :integer not null -# sequence_id :integer not null, primary key +# way_id :bigint(8) not null, primary key +# node_id :bigint(8) not null +# sequence_id :bigint(8) not null, primary key # # Indexes # @@ -16,9 +16,8 @@ # current_way_nodes_node_id_fkey (node_id => current_nodes.id) # -class WayNode < ActiveRecord::Base +class WayNode < ApplicationRecord self.table_name = "current_way_nodes" - self.primary_keys = "way_id", "sequence_id" belongs_to :way belongs_to :node