]> git.openstreetmap.org Git - rails.git/blobdiff - lib/consistency_validations.rb
Boolean correctness in migrations
[rails.git] / lib / consistency_validations.rb
index 8fd6c257d732d30d219df8ac0e2df12185ab4ed2..6e214f90271a066b77a50873c19caddf6840cacd 100644 (file)
@@ -7,7 +7,7 @@ module ConsistencyValidations
   # This will throw an exception if there is an inconsistency
   def check_consistency(old, new, user)
     if new.version != old.version
-      raise OSM::APIVersionMismatchError.new(new.version, old.version)
+      raise OSM::APIVersionMismatchError.new(new.id, new.class.to_s, new.version, old.version)
     elsif new.changeset.nil?
       raise OSM::APIChangesetMissingError.new
     elsif new.changeset.user_id != user.id