1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/railties
Ryuta Kamizono 7b49c5e2f5 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`.
2017-03-04 13:18:44 +00:00
..
console_sandbox.rb
controller_runtime.rb
databases.rake Fix rake db:migrate:status with subdirectories 2017-03-04 13:18:44 +00:00
jdbcmysql_error.rb