I used to develop on SQLite3 and deploy on PostgreSQL. However, after this question I realised the importance of having the same database for development and production.
After many problems, I finally managed to install the PostgreSQL on my Mac OS X Lion 10.7.4.   However, I am still facing some problems:
- Using SQLite3the databases' path is defined on thedatabase.yml, which rails automatically creates within each new project.
- Using PostgreSQLthe database name is defined on thedatabase.yml, which rails doesn't create automatically.
My question:
Shall I create a new database for each new project or shall I change the
database.ymlto include the same database for all projects?
I saw people saying that each user in a computer should have one database, when using PostgreSQL.
Well, if the best practice is to create one database for each project (which I hope so)...
There is any way to configure rails to create the new database automatically within each new project?
 
     
     
    