Rails gets new dbconsole script

Tagged:  •    •    •    •    •  

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

Enjoy!

Reply

The content of this field is kept private and will not be shown publicly.
Captcha
Please show that you are a human visitor (to stop automated spam submissions)
Copy the characters (respecting upper/lower case) from the image.