I'd like to start the rails console and create database entries in a database that isn't the default database, such as the testing database. I'd appreciate any help.
views:
35answers:
2
+2
A:
To start console in test
environment:
ruby script/console test
ruby script/console production
To run rake tasks in test
environment:
rake db:create RAILS_ENV=test
rake db:migrate RAILS_ENV=test
KandadaBoggu
2010-03-05 23:30:56