X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/de973d08cacda5a78707c6c24c44d1efe1f1f798..135ec35a91bcca15637b6436dd7e546468c49690:/app/models/node.rb diff --git a/app/models/node.rb b/app/models/node.rb index 91a1dbc41..c5df1f79e 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -47,15 +47,15 @@ class Node < 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 :latitude, :presence => true, - :numericality => { :integer_only => true } + :numericality => { :only_integer => true } validates :longitude, :presence => true, - :numericality => { :integer_only => true } + :numericality => { :only_integer => true } validates :timestamp, :presence => true validates :changeset, :associated => true validates :visible, :inclusion => [true, false]