A primary school has marked 225 years of educating children in its community.