I was not inferring that he delete the login column and field, rather to
remove the email field and use the login field for both the email and
I see under the validation that you would likely have to extend the
length_of below for the login field to more adequately compensate for
longer email addresses.
You still want to ensure that the email is unique, present,
So I suggest only modifying the following line in
to the following.
validates_length_of :login, :within => 5..255, :on => :create
Nathaniel S. H. Brown http://nshb.net