1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-27 22:11:49 +00:00
redmine/db/migrate/20190620135549_change_roles_name_limit.rb
Jean-Philippe Lang 3ddab944d5 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
2019-06-20 13:59:16 +00:00

10 lines
250 B
Ruby

class ChangeRolesNameLimit < ActiveRecord::Migration[5.2]
def self.up
change_column :roles, :name, :string, :limit => 255, :default => ''
end
def self.down
change_column :roles, :name, :string, :limit => 30, :default => ''
end
end