Fixed: project homepage length validation inconsistent with database field.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@745 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-09-20 18:58:19 +00:00
parent 31eda0fcb2
commit 99dcf2ffe5
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class Project < ActiveRecord::Base
validates_length_of :name, :maximum => 30
validates_format_of :name, :with => /^[\w\s\'\-]*$/i
validates_length_of :description, :maximum => 255
validates_length_of :homepage, :maximum => 30
validates_length_of :homepage, :maximum => 60
validates_length_of :identifier, :in => 3..12
validates_format_of :identifier, :with => /^[a-z0-9\-]*$/