From 3ddab944d565cfaa7591c8baa603f9738c0b14a3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 20 Jun 2019 13:59:16 +0000 Subject: Increase maximum size for role name (#27625). Patch by Aleksandar Pavic. git-svn-id: http://svn.redmine.org/redmine/trunk@18296 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/role.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/role.rb') diff --git a/app/models/role.rb b/app/models/role.rb index 38014102e..0a0f1dd6d 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -77,7 +77,7 @@ class Role < ActiveRecord::Base validates_presence_of :name validates_uniqueness_of :name - validates_length_of :name, :maximum => 30 + validates_length_of :name, :maximum => 255 validates_inclusion_of :issues_visibility, :in => ISSUES_VISIBILITY_OPTIONS.collect(&:first), :if => lambda {|role| role.respond_to?(:issues_visibility) && role.issues_visibility_changed?} -- cgit v1.2.3