# Rake db:test:prepare doesn't work as I'm used to on branch 2-1-stable

**URL:** <https://www.ruby-forum.com/t/rake-dbprepare-doesnt-work-as-im-used-to-on-branch-2-1-stable/146221>\
**Category:** Rails\
**Created:** [August 19, 2008, 8:15am UTC](https://www.ruby-forum.com/t/rake-dbprepare-doesnt-work-as-im-used-to-on-branch-2-1-stable/146221 "2008-08-19T08:15:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 19, 2008, 8:15am UTC](https://www.ruby-forum.com/t/rake-dbprepare-doesnt-work-as-im-used-to-on-branch-2-1-stable/146221/1 "2008-08-19T08:15:36Z")

</div>

Hi,

I’m using rails’ 2-1-stable branch from github since it includes some  
fixes I need.  
When I’m using rake db:test:prepare, I don’t get an up-to-schema test  
database.  
Instead it seems to just re-build my development database, dropping  
all data in it.

It seems b6d0eba5790552f4c9ef6a1abe0befd8be454ada is the commit that  
changed this behavior.

So should I use RAILS\_ENV=test rake db:test:prepare from now on? or is  
this just a small bug?  
To me, db:test:prepare implies it’s gonna use the testing-db anyways.

Thanks,  
Mathijs
