This project is archived and is in readonly mode.
rake test wipes out the entire development db
-
Ryan Bates
Are you certain this problem isn't specific to your application? Check your database.yml file to make sure the test db is different from the development one.
Also make sure this is at the top of your test_helper file to ensure you're running in the test environment.
ENV["RAILS_ENV"] = "test" -
leiyou
Hi Ryan,
the test db is certainly different from the development, and
there is a ENV["RAILS_ENV"] = 'test' on top of test_helper.rb.
the problem happens in the rake task db:test:prepare I believe.
-
leiyou
also, i am on the gem version of rake 0.8.1
-
Chris Gaffney
I've run into the exact same problem using Mysql. It looks like it is only an issue on the 2.1 stable branch. The posted change from db:schema:load to db:test:clone works for me.
Offending commit: http://github.com/rails/rails/co...
-
Chris Gaffney
This actually looks like a duplicate of #670 "loud" migrations + test db prep
-
Tarmo Tänav
- State changed from new to duplicate
Closing as duplicate of #670 "loud" migrations + test db prep
