The ultimate sacrifice paid by pupils of a former rural school in the two World Wars has been honoured with a new memorial.