Boolean ring
a Boolean ring has all of its localizations isomorphic to F2, the field of two elements, so any module over a Boolean ring is locally free, but