整个项目的mongoid表重建索引
Object.constants.map(&:constantize).select {|c| c.included_modules.include?(Mongoid::Document) rescue nil }.compact.map(&:create_indexes)
猜你喜欢
转载自mvj3.iteye.com/blog/1332567
今日推荐
周排行