title: Carrierwave uploaded Images aren't persistent after Capistrano deploy
body: <p>I've just noticed that after I redeploy my rails app to production with <code>cap deploy:migrations</code> any image that I've uploaded via my admin forms (such as creating a testimonial with an avatar image) that the image links are now broken.  The images appear fine as long as I don't redeploy any code, which is not desired since I push code changes quite frequently.  I assume this is related to the way capistrano creates the file structure in 'releases' for each deployment but I'm not sure how to go about fixing this issue.</p>
  
  <p>I'm also not tracking <code>public/uploads</code> with git since I don't want the fake content I use on localhost to appear in production.</p>
  
  <p>So, before my latest code push, I had all the images there since I just added them.  Now, after the push there are no images:</p>
  
  <p><img src="https://i.stack.imgur.com/KqiAS.png" alt="broken image links"></p>
  
  <p>Here are the files that I believe are relevant (let me know if there is one that you need to see beyond these):</p>
  
  <p><strong>avatar_uploader.rb:</strong></p>
  
  <pre><code>class AvatarUploader &lt; CarrierWave::Uploader::Base
    include CarrierWave::RMagick
    storage :file
  
    def store_dir
      "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
    end
  
    process :resize_to_fit =&gt; [200, 200]
  
    def extension_white_list
      %w(jpg jpeg gif png)
    end
  end
  </code></pre>