Feature #14688 » RM14688_increase_category_names_from_30_to_60_chars.diff
| app/models/issue_category.rb (copie de travail) | ||
|---|---|---|
|
|
||
|
validates_presence_of :name
|
||
|
validates_uniqueness_of :name, :scope => [:project_id]
|
||
|
validates_length_of :name, :maximum => 30
|
||
|
validates_length_of :name, :maximum => 60
|
||
|
|
||
|
named_scope :named, lambda {|arg| { :conditions => ["LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip]}}
|
||
|
|
||
- « Previous
- 1
- 2
- Next »