Open mennomenno opened 9 years ago
Yeah these warnings are annoying, a PR to silence them (silence_warnings{ xxx } since I don't think it got dropped in rails 5) would be great.
I found the automatic migrator to not be very reliable, when messing with migrations / schema you can end up in bad states. Prepare is my 'get me back to safety' hatch and a nice tool to get a level playing field when debugging crazy bugs.
The automated migrator should be working on separate test databases, so there might be no need to call prepare as part of the default setup, but not sure ...
Could we replace the db:test:prepare
by a db:reset RAILS_ENV=test
?
possible ... need to dig through the sources a bit to see if they are similar ... ideally stay as close to what rails does as possible to avoid weird edge-cases :)
On Mon, Dec 28, 2015 at 4:06 PM, Ivo Wever notifications@github.com wrote:
Could we replace the db:test:prepare by a db:reset RAILS_ENV=test?
— Reply to this email directly or view it on GitHub https://github.com/grosser/parallel_tests/issues/455#issuecomment-167517921 .
The parallel:prepare task invokes db:test:prepare when database schema has been dumped in sql. See lib/parallel_tests/tasks.rb:93
In Rails 4 this triggers a deprecation warning:
For details see https://github.com/rails/rails/pull/13528