Skip to content

Commit 78db16d

Browse files
committed
maintain return value for recreate_database
1 parent fd890f6 commit 78db16d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,9 @@ def empty_insert_statement_value
364364
# and creates it again using the provided +options+.
365365
def recreate_database(name, options = {})
366366
drop_database(name)
367-
create_database(name, options)
367+
sql = create_database(name, options)
368368
reconnect!
369+
sql
369370
end
370371

371372
# Create a new MySQL database with optional <tt>:charset</tt> and <tt>:collation</tt>.

0 commit comments

Comments
 (0)