1

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?

1
  • What do you have defined as your database in config/database.yml? Commented Oct 15, 2012 at 18:39

2 Answers 2

2

Try running rails dbconsole from the command line while you're inside your project directory.

Sign up to request clarification or add additional context in comments.

2 Comments

And before THAT, if you haven't already, fill in config/database.yml with the appropriate stuff.
Looks like it's already been configured by my host... thanks anyway!
0

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/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.