Permalink
Browse files

Merge pull request #8651 from tjouan/activerecord-structure_dump-endi…

…ng_nl

Fix missing ending newline in db structure dump:
  • Loading branch information...
rafaelfranca committed Dec 30, 2012
2 parents 219e831 + 494cfc3 commit 1202170ad8c4405bb74b56c7844a2ff726249970
Showing with 3 additions and 1 deletion.
  1. +3 −1 activerecord/lib/active_record/railties/databases.rake
@@ -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

0 comments on commit 1202170

Please sign in to comment.