Added length validation for IssueCategory name.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@756 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-09-24 17:15:05 +00:00
parent dd6f438fd1
commit f3673aff28
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ class IssueCategory < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name, :scope => [:project_id]
validates_length_of :name, :maximum => 30
alias :destroy_without_reassign :destroy