summaryrefslogtreecommitdiffstats
path: root/db/migrate/20140228130325_change_changesets_comments_limit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20140228130325_change_changesets_comments_limit.rb')
-rw-r--r--db/migrate/20140228130325_change_changesets_comments_limit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20140228130325_change_changesets_comments_limit.rb b/db/migrate/20140228130325_change_changesets_comments_limit.rb
index 2cff73120..480b34363 100644
--- a/db/migrate/20140228130325_change_changesets_comments_limit.rb
+++ b/db/migrate/20140228130325_change_changesets_comments_limit.rb
@@ -1,6 +1,6 @@
class ChangeChangesetsCommentsLimit < ActiveRecord::Migration[4.2]
def up
- if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
+ if Redmine::Database.mysql?
max_size = 16.megabytes
change_column :changesets, :comments, :text, :limit => max_size
end