]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Merge branch 'master' into feature/add-communities-page
[rails.git] / app / models / node.rb
index f6f0f258e4d3e9ef7eb10324cdd72858b7e3c4cd..ad4318487b722839771e0a94b9cfc62561a966bd 100644 (file)
@@ -49,8 +49,6 @@ class Node < ApplicationRecord
                  :numericality => { :on => :update, :only_integer => true }
   validates :version, :presence => true,
                       :numericality => { :only_integer => true }
-  validates :changeset_id, :presence => true,
-                           :numericality => { :only_integer => true }
   validates :latitude, :presence => true,
                        :numericality => { :only_integer => true }
   validates :longitude, :presence => true,
@@ -238,7 +236,7 @@ class Node < ApplicationRecord
   private
 
   def save_with_history!
-    t = Time.now.getutc
+    t = Time.now.utc
 
     self.version += 1
     self.timestamp = t