Enumerating all models

You could try something like

Dir[RAILS_ROOT + '/app/models/*.rb'].each { |file| require file }

This ensures that all models are loaded. Then you should be able to
use something like.

models = ActiveRecord::Base.send(subclasses)
models.each {}

Note, this is untested and therefore may not work.

Chris