diff options
author | Luca Guidi <guidi.luca@gmail.com> | 2008-10-03 16:08:17 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-10-03 22:08:55 +0200 |
commit | 1bc267d21679408b3624d1c697656ec250c01972 (patch) | |
tree | 215ca0839ffea807b930a3dd3e29e5c48d5061f3 /railties/lib/tasks/databases.rake | |
parent | 7553a23c0a84424bdbc09cc81791f41bfebe1b25 (diff) | |
download | rails-1bc267d21679408b3624d1c697656ec250c01972.tar.gz rails-1bc267d21679408b3624d1c697656ec250c01972.tar.bz2 rails-1bc267d21679408b3624d1c697656ec250c01972.zip |
Make sure recreate MySQL test database with the proper encoding and collation [#1165 state:resolved]
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1165 state:committed]
Diffstat (limited to 'railties/lib/tasks/databases.rake')
-rw-r--r-- | railties/lib/tasks/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake index 1431aa6944..5cb27f1f10 100644 --- a/railties/lib/tasks/databases.rake +++ b/railties/lib/tasks/databases.rake @@ -341,7 +341,7 @@ namespace :db do case abcs["test"]["adapter"] when "mysql" ActiveRecord::Base.establish_connection(:test) - ActiveRecord::Base.connection.recreate_database(abcs["test"]["database"]) + ActiveRecord::Base.connection.recreate_database(abcs["test"]["database"], abcs["test"]) when "postgresql" ActiveRecord::Base.clear_active_connections! drop_database(abcs['test']) |