diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-05-28 13:46:59 +0900 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2017-03-04 13:18:44 +0000 |
commit | 7b49c5e2f5ca7879d18f6fa00d8f2a25c43b422e (patch) | |
tree | 009a9d0aa530a5c2a57a72fa54034a85397571f4 /guides/source/4_1_release_notes.md | |
parent | 0d73f9116ccd3ded23e69d70ff5ed23dd339df5b (diff) | |
download | rails-7b49c5e2f5ca7879d18f6fa00d8f2a25c43b422e.tar.gz rails-7b49c5e2f5ca7879d18f6fa00d8f2a25c43b422e.tar.bz2 rails-7b49c5e2f5ca7879d18f6fa00d8f2a25c43b422e.zip |
Fix `rake db:migrate:status` with subdirectories
`db:migrate` supports subdirectories and have a test.
https://github.com/rails/rails/blob/v5.1.0.beta1/activerecord/test/cases/migrator_test.rb#L78-L85
But `db:migrate:status` doesn't work with subdirectories. It is due to
`Dir.foreach(path)` is not the same with `Dir["#{path}/**/[0-9]*_*.rb"]`.
I extracted `migration_files` and sharing it in the both to fix the
issue. And added tests for `db:migrate:status`.
Diffstat (limited to 'guides/source/4_1_release_notes.md')
0 files changed, 0 insertions, 0 deletions