Skip to content

Instantly share code, notes, and snippets.

@leemour
Created April 5, 2013 21:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leemour/5322848 to your computer and use it in GitHub Desktop.
Save leemour/5322848 to your computer and use it in GitHub Desktop.
Setting environment for rake
Hey guys, sorry to bother but I figure while I have your attention.. I'm having trouble initializing my production & test databases. I'm using Postgres, but whenever I run migrate or reload, it automatically does it on the development database. This is problematic when I run padrino rake test.
So I tried doing padrino rake ar:drop:all and then padrino rake ar:create:all, and this does work.. only there seems to be no corresponding padrino rake ar:migrate:all. What do I do instead?
Oh! padrino rake ar:migrate -e test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment