class Shoulda::ActiveRecord::Matchers::AssociationMatcher

def foreign_key_exists?

def foreign_key_exists?
  !(belongs_foreign_key_missing? || has_foreign_key_missing?)
end