Index: app/models/project.rb =================================================================== --- app/models/project.rb (revision 1746) +++ app/models/project.rb (working copy) @@ -56,7 +56,7 @@ validates_presence_of :name, :identifier validates_uniqueness_of :name, :identifier validates_associated :repository, :wiki - validates_length_of :name, :maximum => 30 + validates_length_of :name, :maximum => 35 validates_length_of :homepage, :maximum => 255 validates_length_of :identifier, :in => 3..20 validates_format_of :identifier, :with => /^[a-z0-9\-]*$/ Index: app/views/projects/_form.rhtml =================================================================== --- app/views/projects/_form.rhtml (revision 1746) +++ app/views/projects/_form.rhtml (working copy) @@ -2,7 +2,7 @@
-

<%= f.text_field :name, :required => true %>
<%= l(:text_caracters_maximum, 30) %>

+

<%= f.text_field :name, :required => true %>
<%= l(:text_caracters_maximum, 35) %>

<% if User.current.admin? and !@root_projects.empty? %>

<%= f.select :parent_id, (@root_projects.collect {|p| [p.name, p.id]}), { :include_blank => true } %>

Index: db/migrate/096_change_project_name_length_limit.rb =================================================================== --- db/migrate/096_change_project_name_length_limit.rb (revision 0) +++ db/migrate/096_change_project_name_length_limit.rb (revision 0) @@ -0,0 +1,9 @@ +class ChangeProjectNameLengthLimit < ActiveRecord::Migration + def self.up + change_column :projects, :name, :string, :limit => 35 + end + + def self.down + change_column :projects, :name, :string, :limit => 30 + end +end