Permalink
Browse files

Prefer utf8_unicode_ci (better) over utf8_general_ci (faster)

  • Loading branch information...
1 parent 058459d commit 05d7409ae5fd423be6f747ad553f659fcecbf548 @jeremy jeremy committed Aug 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 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'
begin
ActiveRecord::Base.establish_connection(config.merge('database' => nil))
ActiveRecord::Base.connection.create_database(config['database'], :charset => (config['charset'] || @charset), :collation => (config['collation'] || @collation))

0 comments on commit 05d7409

Please sign in to comment.