migrate to mongoid