# File lib/couchrest/model/validations/uniqueness.rb, line 12
        def setup(model)
          @model = model
          if options[:view].blank?
            attributes.each do |attribute|
              opts = merge_view_options(attribute)

              unless model.respond_to?(opts[:view_name])
                model.design do
                  view opts[:view_name], :allow_nil => true
                end
              end
            end
          end
        end