Read more

dbconsole in Rails 3 requires the environment as the first argument

Henning Koch
September 06, 2011Software engineer at makandra GmbH

There is a bug in Rails 3's dbconsole script, which makes the following command open a database console for the development environment:

rails dbconsole -p test
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

You need to write this instead:

rails dbconsole test -p
Posted by Henning Koch to makandra dev (2011-09-06 13:35)