1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

Fix missing ending newline in db structure dump:
This commit is contained in:
Rafael Mendonça França 2012-12-30 09:58:08 -08:00
commit 1202170ad8

View file

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