validates_presence_of :name
validates_uniqueness_of :name, :scope => [:project_id]
- validates_length_of :name, :maximum => 30
+ validates_length_of :name, :maximum => 60
attr_protected :id
safe_attributes 'name', 'assigned_to_id'
<%= error_messages_for 'category' %>
<div class="box tabular">
-<p><%= f.text_field :name, :size => 30, :required => true %></p>
+<p><%= f.text_field :name, :size => 60, :required => true %></p>
<p><%= f.select :assigned_to_id, principals_options_for_select(@project.assignable_users, @category.assigned_to), :include_blank => true %></p>
</div>
--- /dev/null
+class ChangeIssueCategoriesNameLimitTo60 < ActiveRecord::Migration
+ def self.up
+ change_column :issue_categories, :name, :string, :limit => 60, :default => "", :null => false
+ end
+
+ def self.down
+ change_column :issue_categories, :name, :string, :limit => 30, :default => "", :null => false
+ end
+end