X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bf41ed31d87eb1623f1aa91c159c3d98872ba5ee..d04c6d6ccd8d42fe3fc983433b8befe6a999dbdc:/app/models/node.rb?ds=sidebyside diff --git a/app/models/node.rb b/app/models/node.rb index 37143ff00..ecaa3f45a 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -10,6 +10,7 @@ class Node < GeoRecord validates_numericality_of :latitude, :longitude validate :validate_position + has_many :ways, :through => :way_nodes has_many :old_nodes, :foreign_key => :id has_many :way_nodes belongs_to :user