提交 1202170a 编写于 作者: R Rafael Mendonça França

Merge pull request #8651 from tjouan/activerecord-structure_dump-ending_nl

Fix missing ending newline in db structure dump:
......@@ -300,7 +300,9 @@ db_namespace = namespace :db do
end
if ActiveRecord::Base.connection.supports_migrations?
File.open(filename, "a") { |f| f << ActiveRecord::Base.connection.dump_schema_information }
File.open(filename, "a") do |f|
f.puts ActiveRecord::Base.connection.dump_schema_information
end
end
db_namespace['structure:dump'].reenable
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册