class Shoulda::Matchers::ActiveRecord::HaveDbColumnMatcher

def correct_primary?

def correct_primary?
  return true unless @options.key?(:primary)
  if matched_column.primary? == @options[:primary]
    true
  else
    @missing = "#{model_class} has a db column named #{@column} "
    @missing <<
      if @options[:primary]
        'that is not primary, but should be'
      else
        'that is primary, but should not be'
      end
    false
  end
end