When working with SQLite3, after I run bundle exec rake db:migrate, it updates the development.sqlite3 file in the db folder (itself in my app folder).
I configured my Rails app to work with PostgreSQL, the databases and migrations work fine but I don’t know where the associated files are created. Instead, I still see the same .sqlite3 files.
Any idea where they are lodged, or maybe they’re not even created? And why the .sqlite3 are still created if I run Rails with PostgreSQL?
Thanks a lot.
PostgreSQL does not have “a single” file with all the data, structure,… basically the whole database. This is the (dis-)advantage of SQLite: it has everything in a single file that makes development very easy.
Depending on your platform, you have a postgresql folder somewhere where all data, table structures, indexes,… are stored. On Ubuntu, the location is per default