ALL HOW TOs




Overview

Figures out which database you're using and drops you into whichever command line interface you would use with it (and figures out the command line parameters to give to it, too!).

It supports:

  • MySQL
  • PostgreSQL
  • SQLite
  • SQLite3

Example

# These are the same command and load db for current environment
$ rails db
$ rails dbconsole

# Can also load db for test environment
$ rails db test
  • No labels