Allow short project names

We have some projects which a length of 2.
With this I lower the minimum lenght to 1.
As I could not found a specific reason why it is set to 3...
This commit is contained in:
Wouter D'Haeseleer 2012-05-03 12:53:24 +02:00
parent 2176e2c915
commit c808295e9e

View file

@ -20,7 +20,7 @@ module Project::ValidationsTrait
:uniqueness => true,
:format => { :with => /^[a-zA-Z0-9_\-\.]*$/,
:message => "only letters, digits & '_' '-' '.' allowed" },
:length => { :within => 3..255 }
:length => { :within => 1..255 }
validates :owner, :presence => true
validate :check_limit