class Shoulda::Matchers::ActiveRecord::HaveDbIndexMatcher
def positive_expectation
def positive_expectation if index_exists? expectation = "have an index on #{inspected_expected_columns}" if qualifiers.include?(:unique) expectation << " and for it to be #{index_type}" end expectation else description end end