Patch #27625

Increase size of name for role name

Added by Aleksandar Pavic visit redminecookbook.com 24 days ago. Updated 1 day ago.

Status:NewStart date:
Priority:HighDue date:
Assignee:-% Done:

0%

Category:Code cleanup/refactoring
Target version:4.1.0

Description

It is limited in model of Role, at line 84

  validates_length_of :name, :maximum => 30

Attached is a patch, increasing it to 255, however I wouldn't limit it at all.

Also migration is added here.

role.patch Magnifier (510 Bytes) Aleksandar Pavic visit redminecookbook.com, 2017-11-23 11:19

20171123100727_change_roles_limit.rb Magnifier (72 Bytes) Aleksandar Pavic visit redminecookbook.com, 2017-11-23 11:19

20171123100727_change_roles_limit.rb Magnifier - Updated... (239 Bytes) Aleksandar Pavic visit redminecookbook.com, 2017-11-23 11:36

History

#1 Updated by Aleksandar Pavic visit redminecookbook.com 24 days ago

Updated migration, since rails didn't put any content into it...

#2 Updated by Toshi MARUYAMA 1 day ago

  • Target version set to 4.1.0

Also available in: Atom PDF