]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Fix numericality validation to use correct integer only constraint
[rails.git] / app / models / way.rb
index 6fcaf39cc7c021801adc22e054820834430b7353..b3466213c34de289b325718bcbdbed8c37a4a744 100644 (file)
@@ -39,11 +39,11 @@ class Way < ActiveRecord::Base
   has_many :containing_relations, :class_name => "Relation", :through => :containing_relation_members, :source => :relation
 
   validates :id, :uniqueness => true, :presence => { :on => :update },
-                 :numericality => { :on => :update, :integer_only => true }
+                 :numericality => { :on => :update, :only_integer => true }
   validates :version, :presence => true,
-                      :numericality => { :integer_only => true }
+                      :numericality => { :only_integer => true }
   validates :changeset_id, :presence => true,
-                           :numericality => { :integer_only => true }
+                           :numericality => { :only_integer => true }
   validates :timestamp, :presence => true
   validates :changeset, :associated => true
   validates :visible, :inclusion => [true, false]