]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
undo composite keys change on old_ndoe
[rails.git] / app / models / relation.rb
index 58add6dd0e96f3c2debc71f2a699533df34f5dda..b7cb0f15bc43d35bf00703d3c7ddb8881f29e0bc 100644 (file)
@@ -31,6 +31,8 @@ class Relation < ActiveRecord::Base
       relation.id = pt['id'].to_i
     end
 
+    relation.version = pt['version']
+
     if create
       relation.timestamp = Time.now
       relation.visible = true