Skip to content
Browse files

mysql needs to reconnect after recreate. Thanks @mperham

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

0 comments on commit 2088bf2

Please sign in to comment.
Something went wrong with that request. Please try again.