Revert "remove mysql 5.6 fix"

This reverts commit ceaec53d39.

Revert "try fixing mysql utf8mb4 issues"

This reverts commit 1a04b3c882.
This commit is contained in:
jomo
2016-01-30 00:01:57 +01:00
parent ceaec53d39
commit e077fd2a0a

View File

@@ -1,11 +0,0 @@
require 'active_record/connection_adapters/abstract_mysql_adapter'
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::NATIVE_DATABASE_TYPES.tap do |defaults|
# Decrease default string length from 255 -> 191 chars so *_type columns
# can be indexed with utf8mb4 without blowing 767 byte max key length.
defaults[:string][:limit] = 191
end
# thanks @jeremy
# https://github.com/rails/rails/pull/23009#issuecomment-171406595