Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Ruby on Rails 5 Basics Creating an App Our First Resource

Where is the database?

If i want to get all the table data details then from where i can get that. Where is the date? And which database rails uses?

1 Answer

Hi there,

If you access the irb console you can query the database directly and look through its structure. The structure is also defined in schema.rb within the db folder in your Rails app.

Rails usually deploys to PostgreSQL but in development it could mysql3 or whatever you have set in your Gemfile.

I hope that helps,