This seems duplicate to ```validates :name, :uniqueness => true```.