Database tasks have been moved outside of the rake module.

https://github.com/mongoid/mongoid/commit/4e0d211f73f63b7932f53ab5140a8609256b10f5
include Mongoid::Attributes::Dynamic on additional models which need it.