plataformatec/devise — pull request #1892 by clody69 (2012-06-03 19:29:05+00:00)
Title: Fixed User model generation for Mongoid 

Mongoid doesn't support :null => false for defining the presence of a field but the correct syntax is:

validates_presence_of