]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
changing the belongs_to and has_many items in the models to reflect the new foriegn...
[rails.git] / app / models / old_node.rb
index 6b6b71b53eaae06d0f7c591c919aaa51c81f3dd1..58a514bcd7b213b0081cbec3fab73eca91c0eb7d 100644 (file)
@@ -8,7 +8,7 @@ class OldNode < ActiveRecord::Base
   validates_numericality_of :latitude, :longitude
   validate :validate_position
 
-  belongs_to :user
+  belongs_to :changeset
  
   def validate_position
     errors.add_to_base("Node is not in the world") unless in_world?