Merge pull request #778 from netdata/Allow_short_project_names
Allow short project names
This commit is contained in:
commit
1db3228c33
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ module Project::ValidationsTrait
|
||||||
:uniqueness => true,
|
:uniqueness => true,
|
||||||
:format => { :with => /^[a-zA-Z0-9_\-\.]*$/,
|
:format => { :with => /^[a-zA-Z0-9_\-\.]*$/,
|
||||||
:message => "only letters, digits & '_' '-' '.' allowed" },
|
:message => "only letters, digits & '_' '-' '.' allowed" },
|
||||||
:length => { :within => 3..255 }
|
:length => { :within => 1..255 }
|
||||||
|
|
||||||
validates :owner, :presence => true
|
validates :owner, :presence => true
|
||||||
validate :check_limit
|
validate :check_limit
|
||||||
|
|
Loading…
Reference in a new issue