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 /activerecord/lib | |
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 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 <tt>:charset</tt> and <tt>:collation</tt>. |