rails/rails — pull request #8651 by tjouan (2012-12-29 17:10:24+00:00)
Title: Fix missing ending newline in db structure dump:

Fix missing ending newline in db structure dump:

When dumping database structure with `rake db:structure:dump` and
using migrations, the resulting file will not end with a newline char.
Although it's not mandatory, it breaks a lot of simple use cases with
programs like cat, more, grep, etc.

This changes use `puts' instead of `<<' to append migration versions
data to the dump.

It would also help if future changes need to append more data in this
dump.

What do you think of it?