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

Posted by 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
Posted by 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)
Posted by 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 (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.