From 1bc267d21679408b3624d1c697656ec250c01972 Mon Sep 17 00:00:00 2001 From: Luca Guidi Date: Fri, 3 Oct 2008 16:08:17 +0200 Subject: Make sure recreate MySQL test database with the proper encoding and collation [#1165 state:resolved] Signed-off-by: Michael Koziarski [#1165 state:committed] --- activerecord/lib/active_record/connection_adapters/mysql_adapter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb index a26fd02b90..3aa27bfc99 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb @@ -371,9 +371,9 @@ module ActiveRecord end end - def recreate_database(name) #:nodoc: + def recreate_database(name, options = {}) #:nodoc: drop_database(name) - create_database(name) + create_database(name, options) end # Create a new MySQL database with optional :charset and :collation. -- cgit v1.2.3