Init rails project. Modify .gitignore to omit /config/database.yml file.

You will need /config/database.yml. It's omitted here because it contains the database password.