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?
2 Answers
Try running rails dbconsole from the command line while you're inside your project directory.
2 Comments
Jason Swett
And before THAT, if you haven't already, fill in
config/database.yml with the appropriate stuff.Paul S.
Looks like it's already been configured by my host... thanks anyway!
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/
config/database.yml?