Let you define an auto-incremented field in Mongoid, which will behave like SQL id field.
Geoffroy Planquart
MIT