# Test db is same as dev db and ask for sure: Yes/No?

**URL:** <https://www.ruby-forum.com/t/test-db-is-same-as-dev-db-and-ask-for-sure-yes-no/189719>\
**Category:** Rails\
**Created:** [June 6, 2010, 5:49am UTC](https://www.ruby-forum.com/t/test-db-is-same-as-dev-db-and-ask-for-sure-yes-no/189719 "2010-06-06T05:49:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![winterheat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7993a0/32.png) [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Post date:** [June 6, 2010, 5:49am UTC](https://www.ruby-forum.com/t/test-db-is-same-as-dev-db-and-ask-for-sure-yes-no/189719/1 "2010-06-06T05:49:35Z")

</div>

Is it feasible that when running unit test or functional test, when it  
detects that the “test” db is the same as the development db, then give  
a warning: are you sure? the whole db will be wiped cleaned - Yes/No.

Because some people who are new to Rails and even experienced people may  
make a simple mistake and wipe out their whole database.

(ours is a 3GB text mysqldump, so to restore it, it takes about 4 hours  
to reconstruct it. anybody know a better way to backup/restore it  
instead of 4 hours by the way?)
