diff options
author | Wouter D'Haeseleer <wouter.dhaeseleer@vasco.com> | 2012-05-03 12:53:24 +0200 |
---|---|---|
committer | Wouter D'Haeseleer <wouter.dhaeseleer@vasco.com> | 2012-05-03 12:53:24 +0200 |
commit | c808295e9ef21105b8d4cc610b6749a0f3e30377 (patch) | |
tree | 7890512aadba976e753d9023cbe29faf4eaa57bb | |
parent | 2176e2c91540d7c642046e9df4040bfd4c37f620 (diff) | |
download | gitlab-ce-c808295e9ef21105b8d4cc610b6749a0f3e30377.tar.gz |
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...
-rw-r--r-- | app/models/project/validations_trait.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project/validations_trait.rb b/app/models/project/validations_trait.rb index 2a9708448c7..d2d207c4356 100644 --- a/app/models/project/validations_trait.rb +++ b/app/models/project/validations_trait.rb @@ -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 |