Prefer utf8_unicode_ci (better) over utf8_general_ci (faster)

This commit is contained in:
Jeremy Kemper 2009-08-27 23:07:43 -07:00
parent c10396b142
commit f6ca7e4e75
1 changed files with 1 additions and 1 deletions

View File

@ -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))