1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/application/rake
Yves Senn 5c4495538b bring back db:test:prepare.
This reverts deprecations added in #13528.
The task is brought back for two reasons:
  1. Give plugins a way to hook into the test database initialization process
  2. Give the user a way to force a test database synchronization

While `test:prepare` is still a dependency of every test task, `db:test:prepare`
no longer hooks into it. This means that `test:prepare` runs before the schema
is synchronized. Plugins, which insert data can now hook into `db:test:prepare`.

The automatic schema maintenance can't detect when a migration is rolled-back,
modified and reapplied. In this case the user has to fall back to `db:test:prepare`
to force the synchronization to happen.
2014-11-25 18:17:01 +01:00
..
dbs_test.rb bring back db:test:prepare. 2014-11-25 18:17:01 +01:00
migrations_test.rb Add a test for db:migrate:status to check missing file scenario 2014-06-27 18:28:12 +03:00
notes_test.rb Refactor assertion of line numbers matching 4 spaces 2014-03-19 21:47:38 -03:00