Skip to content
Browse files

Join method uses empty string by default, so remove it

  • Loading branch information...
1 parent b96aaf8 commit 97ca6358c5fbd5458b684d6d46489b7b68c48225 @tenderlove tenderlove committed Nov 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
View
4 activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
@@ -389,11 +389,11 @@ def structure_dump #:nodoc:
sql = "SHOW TABLES"
end
- select_all(sql).map do |table|
+ select_all(sql).map { |table|
table.delete('Table_type')
sql = "SHOW CREATE TABLE #{quote_table_name(table.to_a.first.last)}"
exec_without_stmt(sql).first['Create Table'] + ";\n\n"
- end.join("")
+ }.join
end
# Drops the database specified on the +name+ attribute

0 comments on commit 97ca635

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