rspec - Spork and db:test:prepare -
simple question hope has clever answer.
i use spork run specs , features. works great. however, if update database migration, can't update test database without stopping both of spork servers. there anyway can spork let me drop , recreate database without shutting down?
the reason ask because can run migrations while dev server runs, , seems me i'm doing exact same thing.
had same issue , found this: https://github.com/sporkrb/spork/issues/188
per recommendation there added:
activerecord::base.remove_connection to end of spork.prefork block in both spec_helper.rb , env.rb
Comments
Post a Comment