February 1, 2012
Log in to your database console using Rails

rubyquicktips:

Instead of using the database-specific command to start your project’s database console, Rails provides one consistent interface for the most popular databases (MySQL, PostgreSQL and SQLite):

script/dbconsole [RAILS_ENV] # Rails 2
rails dbconsole [RAILS_ENV] # Rails 3
rails db [RAILS_ENV] # Rails 3 alias

  1. shabdar reblogged this from rubyquicktips
  2. errm reblogged this from rubyquicktips
  3. rubyquicktips posted this