diff --git a/app/models/issue_category.rb b/app/models/issue_category.rb index 1abcf4c32..b184c132f 100644 --- a/app/models/issue_category.rb +++ b/app/models/issue_category.rb @@ -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