Forum: Ruby on Rails Help - Overwrote database

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ryan W. (Guest)
on 2005-12-26 21:02
(Received via mailing list)
Hey all. Hope you can help with this. I was running "rake" to run
tests on my server we are setting up for production. I'm currently
entering all my data into the dev database. After running "rake", my
dev database looked just like my test database. It overwrote all my

I was using the same db for production and development if that
matters. My database.yml file is as follows:

  adapter: mysql
  database: jcadev
  host: localhost
  username: jca
  password: *************

# Warning: The database defined as 'test' will be erased and
# re-generated from your development database when you run 'rake'.
# Do not set this db to the same as development or production.
  adapter: mysql
  database: jcatest
  host: localhost
  username: jca
  password: ************r


Why would the development db be affected when running a rake test??

This topic is locked and can not be replied to.