Based on the discussion in https://github.com/roberts1000/rspec_n/issues/104, use db:schema:load to rebuild/prepare the database, before each run, instead of db:migrate. Using db:schema:load is faster and helps projects that have old migrations, which may no longer run properly.
Note: This is potentially a breaking change for projects that haven't kept their schema.rb or structure.sql update. Projects will either need to update their schema.rb or structure.sql, or use the -c option to invoke rspec_n using the old migration approach, like this:
Based on the discussion in https://github.com/roberts1000/rspec_n/issues/104, use
db:schema:load
to rebuild/prepare the database, before each run, instead ofdb:migrate
. Usingdb:schema:load
is faster and helps projects that have old migrations, which may no longer run properly.Note: This is potentially a breaking change for projects that haven't kept their
schema.rb
orstructure.sql
update. Projects will either need to update theirschema.rb
orstructure.sql
, or use the-c
option to invoke rspec_n using the old migration approach, like this: