summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 13:59:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 13:59:16 +0000
commit3ddab944d565cfaa7591c8baa603f9738c0b14a3 (patch)
tree4ad8c704029ac6b32bc960fd5aa2ac6cfdc9a2a9 /db
parent54acf556abf57d3a898318611845bccc71260a3b (diff)
downloadredmine-3ddab944d565cfaa7591c8baa603f9738c0b14a3.tar.gz
redmine-3ddab944d565cfaa7591c8baa603f9738c0b14a3.zip
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
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20190620135549_change_roles_name_limit.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20190620135549_change_roles_name_limit.rb b/db/migrate/20190620135549_change_roles_name_limit.rb
new file mode 100644
index 000000000..29f5b03c5
--- /dev/null
+++ b/db/migrate/20190620135549_change_roles_name_limit.rb
@@ -0,0 +1,9 @@
+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