Project

General

Profile

Feature #14688 » RM14688_increase_category_names_from_30_to_60_chars.diff

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

View differences:

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]}}
(2-2/2)