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:
parent
dd6f438fd1
commit
f3673aff28
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue