@@ -22,6 +22,7 class IssueCategory < ActiveRecord::Base | |||||
22 |
|
22 | |||
23 | validates_presence_of :name |
|
23 | validates_presence_of :name | |
24 | validates_uniqueness_of :name, :scope => [:project_id] |
|
24 | validates_uniqueness_of :name, :scope => [:project_id] | |
|
25 | validates_length_of :name, :maximum => 30 | |||
25 |
|
26 | |||
26 | alias :destroy_without_reassign :destroy |
|
27 | alias :destroy_without_reassign :destroy | |
27 |
|
28 |
General Comments 0
You need to be logged in to leave comments.
Login now