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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -