Dipolar bosons on an optical lattice ring