diff options
author | Thibault Jouan <tj@a13.fr> | 2012-12-27 21:50:55 +0000 |
---|---|---|
committer | Thibault Jouan <tj@a13.fr> | 2012-12-30 15:21:04 +0000 |
commit | 494cfc373577850957844363a472ecd9c106f30a (patch) | |
tree | bf2a5e09d2b2271a75de856bccb959798e61ee68 /tools | |
parent | 257b3f63c4c73e369d789c7b10653398df7390f7 (diff) | |
download | rails-494cfc373577850957844363a472ecd9c106f30a.tar.gz rails-494cfc373577850957844363a472ecd9c106f30a.tar.bz2 rails-494cfc373577850957844363a472ecd9c106f30a.zip |
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 and also split the line where this is happening as it
was a bit long.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions