I have produced a brand new rails application (3.1.1) using MySQL. In database.yml, I have make the login qualifications for any remote MySQL server in development, as the test &lifier production databases are positioned track of localhost. It seems that producing a scaffold and rake db:migrate adopts the exam db?

How do you do pressure rails to simply use development mysql db? I would like db:create, db:migrate, etc. only create tables within the development (remote MySQL) server and never in test or production?

rake db:migrate and other alike calls make use of your development atmosphere, not your test one. If you wish to migrate your test database, you'd do

rake RAILS_ENV=test db:migrate

How's it going identifying that if you use rake db:migrate this is certainly going to your test DB?