Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prefer utf8_unicode_ci (better) over utf8_general_ci (faster)

  • Loading branch information...
commit f6ca7e4e75408bc42f515fc7206d6c6ff0dce7c6 1 parent c10396b
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/tasks/databases.rake
View
2  railties/lib/tasks/databases.rake
@@ -55,7 +55,7 @@ namespace :db do
case config['adapter']
when 'mysql'
@charset = ENV['CHARSET'] || 'utf8'
- @collation = ENV['COLLATION'] || 'utf8_general_ci'
+ @collation = ENV['COLLATION'] || 'utf8_unicode_ci'
creation_options = {:charset => (config['charset'] || @charset), :collation => (config['collation'] || @collation)}
begin
ActiveRecord::Base.establish_connection(config.merge('database' => nil))
Something went wrong with that request. Please try again.