# File lib/mongoid/indexes.rb, line 30 def add_indexes if hereditary? && !index_options[:_type] self.index_options[:_type] = {:unique => false, :background => true} end create_indexes if Mongoid.autocreate_indexes end