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

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.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.