Skip to content
This repository
Browse code

Prefer utf8_unicode_ci (better) over utf8_general_ci (faster)

  • Loading branch information...
commit f6ca7e4e75408bc42f515fc7206d6c6ff0dce7c6 1 parent c10396b
Jeremy Kemper authored August 27, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  railties/lib/tasks/databases.rake
2  railties/lib/tasks/databases.rake
@@ -55,7 +55,7 @@ namespace :db do
55 55
       case config['adapter']
56 56
       when 'mysql'
57 57
         @charset   = ENV['CHARSET']   || 'utf8'
58  
-        @collation = ENV['COLLATION'] || 'utf8_general_ci'
  58
+        @collation = ENV['COLLATION'] || 'utf8_unicode_ci'
59 59
         creation_options = {:charset => (config['charset'] || @charset), :collation => (config['collation'] || @collation)}
60 60
         begin
61 61
           ActiveRecord::Base.establish_connection(config.merge('database' => nil))
Something went wrong with that request. Please try again.