title: Rails database.yml disappear in development
body: <p>I have a Rails 3.2.x app which I recently removed database.yml out of version control in <code>git</code> bit adding <code>/config/database.yml</code> to <code>.gitignore</code> in my app directory and did a <code>git rm --cached config/database.yml</code> in my app directory.  I have the <code>database.yml</code> file on my production and staging server under <code>app/shared/config/database.yml</code> and I symlink to it via my <code>Capistrano</code> <code>deploy.rb</code> file.</p>
  
  <p>In my dev environment on my master branch I recreated the <code>database.yml</code> file and I can continue development, but every so often the file disappears from the directory entirely and I have to recreate it.  Note, I have <code>Sublime Text 2</code> open usually with <code>database.yml</code> being one of the files that I have open most of the time.</p>
  
  <p>Things will run fine for a while but all of a sudden the file will disappear from the master branch <code>config</code> directory on my local disk and I have to recreate it.</p>
  
  <p>What could be causing this file to disappear randomly?  <code>git</code> ignores it and I just use a local copy in my master branch.  Could this be from switching branches?  Or because my text editor has it open?</p>
  
  <p>It's not a huge deal because I have a backup copy and I can just drop in, but this only started since I pulled it out of version control/<code>git</code>.</p>
  
  <p>Any thoughts on why this is happening?  There are times when I need to demo the app and don't want to have any "hiccups".</p>
  
  <p>Any help is greatly appreciated.  I don't want to have to commit <code>database.yml</code> back to version control, that's for sure but this problem is perplexing as to why it disappears randomly.</p>