I am wondering about the magnetic field on the inside of hollow magnets. As an example, will use a ring magnet. In a diametrically magnetised ring magnet, does the magnet have the same pole on the inside and outside diameter, like this?
Or, does it have opposite poles, like this?

