sanity, inc.

simple thinking for complex software

Rails Gets New Dbconsole Script

I’m happy to announce that my db_console plugin for Rails has just been added to Rails Core.

Instead of using rake db:console and friends, users of Edge Rails (and maybe even Rails 2.1, when that’s released) can enjoy being able to conveniently launch mysql, psql or sqlite against their Rails databases using script/dbconsole, a database counterpart to the handy script/console:

% script/dbconsole     # connect to development database (or $RAILS_ENV)
% script/dbconsole production    # connect to production database