Reputation: 4492
I cannot find where the database in my Rails application is located. I looked in folders like /db
, /db/migrate
, and /app/models
, but cannot find the actual database that I can open to examine the data. Where is it located?
Upvotes: 1
Views: 107
Reputation: 2785
If you're running a SQLite Db (which rails runs by default), you can download SQLite DB Browser (http://sqlitebrowser.sourceforge.net/), and open your db/sqlite3 file to view the actual data, or if you're using mysql, check out: http://www.sequelpro.com/
Upvotes: 0
Reputation: 45074
Try running rails dbconsole
from the command line while you're inside your project directory.
Upvotes: 2