Cmd line arg to specify DB for rake migrate?

I want to say

bundle exec rake db:migrate

but, I don’t want to use the default database. Is there a command line
argument I can use?

Thanks,

Joe

On Nov 20, 2012, at 3:33 PM, jmcguckin wrote:

I want to say

bundle exec rake db:migrate

but, I don’t want to use the default database. Is there a command line argument
I can use?

If you define an environment for it in database.yml, then you can just
do this:

rake db:migrate RAILS_ENV=my_production

Walter