Deja vu.
The Rammas may have been more of a morale booster to the Minas Tirith denizens than a serious defense. As
Morth said, trying to keep such a barrier fully manned would have required more soldiery than Minas Tirith could muster, and if it was tried anyway, once invaders overcame the wall there would have been little between them and the City.