include Mongoid::IdAutoIncrement and you can use as mysql