Modify attachment migration to work with Heroku