A medieval ring found in a field by metal detectors has been donated to a museum.