Permalink
Browse files

mysql needs to reconnect after recreate. Thanks @mperham

  • Loading branch information...
1 parent 3910817 commit 2088bf27981137a2c6c8b2f718f33b417b4045af @tenderlove tenderlove committed Apr 30, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
@@ -365,6 +365,7 @@ def empty_insert_statement_value
def recreate_database(name, options = {})
drop_database(name)
create_database(name, options)
+ reconnect!
end
# Create a new MySQL database with optional <tt>:charset</tt> and <tt>:collation</tt>.

0 comments on commit 2088bf2

Please sign in to comment.