Skip to content

Instantly share code, notes, and snippets.

@toshiwo
Created July 15, 2014 03:48
Show Gist options
  • Select an option

  • Save toshiwo/97899ba576554d0c06c4 to your computer and use it in GitHub Desktop.

Select an option

Save toshiwo/97899ba576554d0c06c4 to your computer and use it in GitHub Desktop.
# https://github.com/rails/rails/issues/9855#issuecomment-28874587
#
# config/initializers/mysqlpls.rb
require 'active_record/connection_adapters/abstract_mysql_adapter'
module ActiveRecord
module ConnectionAdapters
class AbstractMysqlAdapter
NATIVE_DATABASE_TYPES[:string] = { :name => "varchar", :limit => 191 }
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment