mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Join method uses empty string by default, so remove it
This commit is contained in:
@@ -389,11 +389,11 @@ module ActiveRecord
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user