]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Merge branch 'pull/3472'
[rails.git] / app / models / way.rb
index 0c6e645b7e2ce40f89bf81ca2002a5c056550cf2..b11c225ddb1cfd0a6fb604174d4e39354eab0276 100644 (file)
@@ -41,8 +41,6 @@ class Way < 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 :timestamp, :presence => true
   validates :changeset, :associated => true
   validates :visible, :inclusion => [true, false]
@@ -229,7 +227,7 @@ class Way < ApplicationRecord
   private
 
   def save_with_history!
-    t = Time.now.getutc
+    t = Time.now.utc
 
     self.version += 1
     self.timestamp = t