Commit c808295e authored by Wouter D'Haeseleer's avatar Wouter D'Haeseleer

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...
parent 2176e2c9
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment