Ross County defender Scott Boyd has signed a new contract to make him the club's longest-serving player.