Fix travis error by restricting mongoid version