> I don't want this to be about the fact that I am a minority in tech and the only one on the team. But, I am pretty sure it is
No, it's not.
Be an adult and demand that your manager provide a thorough explanation on why he is rewriting your code. If your code is shit, then make him tell you so you can improve.