diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-04-16 13:26:02 +0400 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-04-23 13:08:51 +0400 |
commit | cd61239540c00279563cc0e4ae763a569be0bef5 (patch) | |
tree | f27e65b62150547ff638e401f041e810c9ba20da /db/migrate | |
parent | 43e77099d86960401013a45f56e29bfb83368d2c (diff) |
Move the adapter check to the migration
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/limits_to_mysql.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/limits_to_mysql.rb b/db/migrate/limits_to_mysql.rb index 4dc3b830bc6..2b7afae6d7c 100644 --- a/db/migrate/limits_to_mysql.rb +++ b/db/migrate/limits_to_mysql.rb @@ -1,6 +1,6 @@ class LimitsToMysql < ActiveRecord::Migration def up - return unless ActiveRecord::Base.configurations[Rails.env]['adapter'] == 'mysql2' + return unless ActiveRecord::Base.configurations[Rails.env]['adapter'] =~ /^mysql/ change_column :merge_request_diffs, :st_commits, :text, limit: 2147483647 change_column :merge_request_diffs, :st_diffs, :text, limit: 2147483647 |