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:
parent
2176e2c915
commit
c808295e9e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue