Migration to add close-time to changesets. This replaces the boolean 'open' attribute...
[rails.git] / app / models / node.rb
index faba4ed66d5e37817fc4821c4947d76aecbc03cc..e926e06a210baa326842920a2c113f39085aee05 100644 (file)
@@ -141,6 +141,9 @@ class Node < ActiveRecord::Base
       old_node.timestamp = t
       old_node.save_with_dependencies!
 
+      # tell the changeset we updated one element only
+      changeset.add_changes! 1
+
       # save the changeset in case of bounding box updates
       changeset.save!
     end