Project

General

Profile

Patch #1791 ยป change_issue_categories_name_length_limit_to_40-r1745.patch

Patch created against r1745 of the trunk. - Mischa The Evil, 2008-08-14 19:23

View differences:

app/models/issue_category.rb (working copy)
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 => 40
26 26
  
27 27
  alias :destroy_without_reassign :destroy
28 28
  
app/views/issue_categories/_form.rhtml (working copy)
1 1
<%= error_messages_for 'category' %>
2 2

  
3 3
<div class="box">
4
<p><%= f.text_field :name, :size => 30, :required => true %></p>
4
<p><%= f.text_field :name, :size => 40, :required => true %></p>
5 5
<p><%= f.select :assigned_to_id, @project.users.collect{|u| [u.name, u.id]}, :include_blank => true %></p>
6 6
</div>
db/migrate/097_change_issue_categories_name_length_limit.rb (revision 0)
1
class ChangeIssueCategoriesNameLengthLimit < ActiveRecord::Migration
2
  def self.up
3
    change_column :issue_categories, :name, :string, :limit => 40
4
  end
5

  
6
  def self.down
7
    change_column :issue_categories, :name, :string, :limit => 30
8
  end
9
end
    (1-1/1)