I’m joining a project and am a bit confused because it doesn’t have a database.yml file. So when I try to run “rake db:schema:load” or “rake db:setup”, I get a complaint about the missing file.
I’ve spent more time with Mongo than MySQL so I’m not sure if it’s standard to just make your database.yml by hand or through a rake task that I’m not seeing, or if the fact that it is missing is a problem.
I guess your team intentionally exclude this file out from project due to this file contains DB’s password.
You can create your own database.yml file (it’s located at config/database.yml)
ex.
Edit:
To secure your configuration file, you could use environment variable instead e.g.
This way you could store your configuration file in public area.