Dec 022009

Note that when setting the Rails environment you have to pass it differently in different cases. For rake, set RAILS_ENV= as part of the command line options.

rake db:migrate RAILS_ENV=test

But when running script/console, you just put the environment name after the “script/console”:

script/console test
 Posted by at 1:47 pm  Tagged with:

 Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.