Object.constants.map(&:constantize).select {|c| c.included_modules.include?(Mongoid::Document) rescue nil }.compact.map(&:create_indexes)