summaryrefslogtreecommitdiffstats
path: root/db/migrate/20161010081301_change_issues_description_limit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20161010081301_change_issues_description_limit.rb')
-rw-r--r--db/migrate/20161010081301_change_issues_description_limit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20161010081301_change_issues_description_limit.rb b/db/migrate/20161010081301_change_issues_description_limit.rb
index 93fcc53ff..f428e274c 100644
--- a/db/migrate/20161010081301_change_issues_description_limit.rb
+++ b/db/migrate/20161010081301_change_issues_description_limit.rb
@@ -1,6 +1,6 @@
class ChangeIssuesDescriptionLimit < ActiveRecord::Migration[4.2]
def up
- if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
+ if Redmine::Database.mysql?
max_size = 16.megabytes
change_column :issues, :description, :text, :limit => max_size
end