This is no new issue and most likely it will only be relevant to older rails projects, but since I faced the same issue again and meanwhile forgot what it was about and how it should be fixed, here a note to self.
For more details and an appropriate header image for this subject, check out Christine’s Post on this issue: What’s up with mimemagic breaking everything?
While running bundle install