Forum: Ruby on Rails rake db:setup doesn't run migrations on test db?

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.
Fc582698581884352e745d1d4c64699d?d=identicon&s=25 Joshua Muheim (josh)
on 2012-06-13 15:32
Hey everybody

I just noticed that rake db:setup doesn't seem to run migrations on the
test db (although it creates it if it's not existing)?! Is this normal
behavior? And if so, why?

Thanks for help,
Josh
Ced7816570f6384acf5bb7665e79670a?d=identicon&s=25 Oscar Del Ben (Guest)
on 2012-06-13 16:16
(Received via mailing list)
You should use rake db:test:prepare

--
Oscar Del Ben
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
Fc582698581884352e745d1d4c64699d?d=identicon&s=25 Joshua Muheim (josh)
on 2012-06-13 16:17
Oscar Del Ben wrote in post #1064417:
> You should use rake db:test:prepare

That's clear to me, I just find it strange that although db:setup
creates a test db for me and runs migrations on the development db, it
doesn't run the migrations on the test db.
This topic is locked and can not be replied to.