From 59c69a642ff64111caf8ff4c1dd6e25e7d430b4e Mon Sep 17 00:00:00 2001 From: Shaun McDonald Date: Mon, 8 Dec 2008 15:32:29 +0000 Subject: [PATCH] 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. --- app/models/changeset.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2