Enforce that realm name is unique in model