Skip to content

Commit

Permalink
Prefer utf8_unicode_ci (better) over utf8_general_ci (faster)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Aug 28, 2009
1 parent c10396b commit f6ca7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/tasks/databases.rake
Expand Up @@ -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))
Expand Down

3 comments on commit f6ca7e4

@henrik
Copy link
Contributor

@henrik henrik commented on f6ca7e4 Sep 6, 2009

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better how? Curious.

@henrik
Copy link
Contributor

@henrik henrik commented on f6ca7e4 Sep 6, 2009

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jamesbebbington
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.