]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_node.rb
Fixed a problem where rails was setting the ID column to null, which violates the...
[rails.git] / app / models / old_node.rb
index badcd74a2cb7d9d1975e9306559c56fb9fbd3e60..be115c53eaaaa026d38559ad63c5316326872968 100644 (file)
@@ -8,6 +8,7 @@ class OldNode < ActiveRecord::Base
   validates_inclusion_of :visible, :in => [ true, false ]
   validates_numericality_of :latitude, :longitude
   validate :validate_position
+  validates_associated :changeset
 
   belongs_to :changeset