Development to Production


Does rake db:create accept a parameter to specify the environment to
create? I have a _development DB and would like to create the
_production DB to match the schema, and migrate the data.

I can't seem to find the documentation to do this. Can someone point
me in the right direction? Or do you have the command to do this?


RAILS_ENV=<environment> rake db:create

(assuming a *nix environment)

So, for production you'd do:

RAILS_ENV=production rake db:create

In windows, I'm sure there is a similar way to set the rails env, but
as I don't code on windows (anymore), I'm not sure what that way is.