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:18am |
URL: http://tumblelog.alishabdar.com/post/16858056912/log-in-to-your-database-console-using-rails
-
shabdar reblogged this from rubyquicktips
-
errm reblogged this from rubyquicktips
-
rubyquicktips posted this