mysql needs to reconnect after recreate. Thanks @mperham

This commit is contained in:
Aaron Patterson 2013-04-30 11:20:32 -07:00
parent 3910817bfe
commit 2088bf2798

@ -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>.