A second Massachusetts community reaches a deal with striking teachers