I used SQLite3 in development and PostgreSQL to create my first few Rails projects. Just today, I switched the current project development environment to PostgreSQL.
When I first deployed my application to Heroku, I spent two days fixing bugs caused by database migrations. Migrations worked fine in SQLite3, but burst into PostgreSQL. If I used one DB, I would avoid debugging this time.
This morning I tried to use some SQL queries. If you use only requests for rails, you can get away with switching databases. When you start writing SQL, you begin to see problems. Check out my question and solution here: Ruby strftime '% -m' does not work in request
- SQL- strftime, .
, .