]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
Merge branch 'pull/3472'
[rails.git] / app / models / relation.rb
index 61ae45c99d24b65512ce480c55b70ad7dc9a81da..0a4a660a6fa536c52a025a4b337c521e85ab59be 100644 (file)
@@ -39,8 +39,6 @@ class Relation < 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]
@@ -265,7 +263,7 @@ class Relation < ApplicationRecord
   private
 
   def save_with_history!
-    t = Time.now.getutc
+    t = Time.now.utc
 
     self.version += 1
     self.timestamp = t