Project

General

Profile

Actions

Patch #27625

closed

Increase maximum size for role name

Added by Aleksandar Pavic about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
High
Category:
Permissions and roles
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

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.


Files

role.patch (510 Bytes) role.patch Aleksandar Pavic, 2017-11-23 11:19
20171123100727_change_roles_limit.rb (72 Bytes) 20171123100727_change_roles_limit.rb Aleksandar Pavic, 2017-11-23 11:19
20171123100727_change_roles_limit.rb (239 Bytes) 20171123100727_change_roles_limit.rb Updated... Aleksandar Pavic, 2017-11-23 11:36
Actions #1

Updated by Aleksandar Pavic about 7 years ago

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

Actions #2

Updated by Toshi MARUYAMA about 7 years ago

  • Target version set to 4.1.0
Actions #3

Updated by Go MAEDA over 5 years ago

  • Category changed from Code cleanup/refactoring to Permissions and roles
Actions #4

Updated by Jean-Philippe Lang over 5 years ago

  • Subject changed from Increase size of name for role name to Increase maximum size for role name
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang

Committed, thanks.

Actions

Also available in: Atom PDF