What is the meaning of Reformatory?

Of, pertaining to, or conducive to reform; reformative.

A prison, especially one for juveniles; a reform school.

Source: wiktionary.org