From f6ca7e4e75408bc42f515fc7206d6c6ff0dce7c6 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 27 Aug 2009 23:07:43 -0700 Subject: Prefer utf8_unicode_ci (better) over utf8_general_ci (faster) --- railties/lib/tasks/databases.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib') diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake index 687bc00b3c..8401cf0590 100644 --- a/railties/lib/tasks/databases.rake +++ b/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)) -- cgit v1.2.3