1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test
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
..
active_record/connection_adapters Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
assets Use YAML to serialize schema cache 2016-11-27 22:09:58 -05:00
cases Fix rake db:migrate:status with subdirectories 2017-03-04 13:18:44 +00:00
fixtures Correct spelling 2017-02-05 19:00:18 -06:00
migrations modernizes hash syntax in activerecord 2016-08-06 19:37:57 +02:00
models Fix inspection behavior when the :id column is not primary key 2017-02-09 01:57:50 +09:00
schema Correctly dump native timestamp types for MySQL 2017-02-23 12:51:49 +09:00
support Handle non-existing $ARCONN 2017-02-27 08:23:02 -06:00
.gitignore
config.example.yml Fix tests for prepared_statements: false and queries hitting #select_all 2016-11-19 21:52:52 +05:30
config.rb