There is a bug in Rails 3's dbconsole script, which makes the following command open a database console for the development environment:
dbconsole
development
rails dbconsole -p test
Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!
You need to write this instead:
rails dbconsole test -p