update mongoid to 3.1