From: Shaun McDonald Date: Mon, 8 Dec 2008 15:32:29 +0000 (+0000) Subject: the user id may be negative, so that osmosis can create changesets for users that... X-Git-Tag: live~7604^2~110 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/59c69a642ff64111caf8ff4c1dd6e25e7d430b4e the user id may be negative, so that osmosis can create changesets for users that are anonymous, which it uses a negative id for, as a special id. --- diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 6bc553a78..3e0ba9f8e 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -17,7 +17,7 @@ class Changeset < ActiveRecord::Base validates_uniqueness_of :id validates_numericality_of :id, :on => :update, :integer_only => true validates_numericality_of :min_lat, :max_lat, :min_lon, :max_lat, :allow_nil => true, :integer_only => true - validates_numericality_of :user_id, :integer_only => true, :greater_than_or_equal_to => 1 + validates_numericality_of :user_id, :integer_only => true validates_numericality_of :num_changes, :integer_only => true, :greater_than_or_equal_to => 0 validates_associated :user