migrations - determine all available migration (files)

Is there a way to determine whether all migrations have been run?

ActiveRecord::Migrator.get_all_versions only returns the migrations run (but not the ones not yet run).

Thx Clemens

just scanning throught the source, ActiveRecord::Migrator.new.pending_migrations looks promising.

Fred