RM14688_increase_category_names_from_30_to_60_chars.diff

Jérôme BATAILLE, 2013-08-14 13:45

Download (528 Bytes)

View differences:

app/models/issue_category.rb (copie de travail)
22 22
  
23 23
  validates_presence_of :name
24 24
  validates_uniqueness_of :name, :scope => [:project_id]
25
  validates_length_of :name, :maximum => 30
25
  validates_length_of :name, :maximum => 60
26 26
  
27 27
  named_scope :named, lambda {|arg| { :conditions => ["LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip]}}
28 28