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.
-Danimal
On Apr 10, 11:26 am, pete
<peterbattag...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi-
>
> 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?
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---