Migration db/post_migrate/20170408033905_remove_old_cache_directories.rb takes forever to run on GitLab.com

This migration takes absolutely forever to run on GitLab.com, most likely due to the large amount of temporary files. We need to adjust this migration so it completes in a shorter amount of time.

cc @blackst0ne