Fix for skipped migrations

Works, but I'm not happy with the call to memoize the heroku commit.