summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-21 18:52:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-21 18:52:12 +0000
commit05106b45ad22640039e012abbdc3c8a30040acdc (patch)
tree36efe3821e4cb48451ed4d49758cf8accdfb4d91 /db
parente2d860b34ba9ce933f8dc029093ed76655473073 (diff)
downloadredmine-05106b45ad22640039e012abbdc3c8a30040acdc.tar.gz
redmine-05106b45ad22640039e012abbdc3c8a30040acdc.zip
Raises maximum length of category name to 60 (#20991).
git-svn-id: http://svn.redmine.org/redmine/trunk@14724 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb b/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb
new file mode 100644
index 000000000..b9c971edf
--- /dev/null
+++ b/db/migrate/20151021184614_change_issue_categories_name_limit_to_60.rb
@@ -0,0 +1,9 @@
+class ChangeIssueCategoriesNameLimitTo60 < ActiveRecord::Migration
+ def self.up
+ change_column :issue_categories, :name, :string, :limit => 60, :default => "", :null => false
+ end
+
+ def self.down
+ change_column :issue_categories, :name, :string, :limit => 30, :default => "", :null => false
+ end
+end