The project name should not be limited to 16 characters. 16 is too short

This commit is contained in:
Kevin Lynch 2011-10-17 18:35:25 -04:00
parent 4d37329c73
commit a39d0431cb

View file

@ -28,7 +28,7 @@ class Project < ActiveRecord::Base
:uniqueness => true,
:format => { :with => /^[a-zA-Z0-9_\-]*$/,
:message => "only letters, digits & '_' '-' allowed" },
:length => { :within => 3..16 }
:length => { :within => 3..255 }
validates :owner,
:presence => true