diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-11-11 13:39:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-11-11 13:39:14 +0000 |
commit | fa3d71bed9520de811998a83c33b6ce3b9ffed00 (patch) | |
tree | 5a05dee965a107d1f53b34d4545d5cb049887546 /app/models | |
parent | 7482d2f5f42086c67d2688b5e978514fd02f6981 (diff) | |
download | redmine-fa3d71bed9520de811998a83c33b6ce3b9ffed00.tar.gz redmine-fa3d71bed9520de811998a83c33b6ce3b9ffed00.zip |
Allow non-unique names for projects (#630).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4391 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index a6d7dc790..43e0ce8dc 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -64,7 +64,7 @@ class Project < ActiveRecord::Base attr_protected :status, :enabled_module_names validates_presence_of :name, :identifier - validates_uniqueness_of :name, :identifier + validates_uniqueness_of :identifier validates_associated :repository, :wiki validates_length_of :name, :maximum => 30 validates_length_of :homepage, :maximum => 255 |