Forum: Ruby on Rails Help - Overwrote database

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E37ca8b3eee534fa6781f7ba13743afb?d=identicon&s=25 Ryan Wood (Guest)
on 2005-12-26 20: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
data??!!??

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

development:
  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.
test:
  adapter: mysql
  database: jcatest
  host: localhost
  username: jca
  password: ************r

production:
  development


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

--Ryan
This topic is locked and can not be replied to.