I would like to NOT require email for signing in using devise. I removed email from config/initializers/devise.rb:
config.authentication_keys = [ :login ]
and added this to my user model:
def email_required?
false
end
However, I am getting this error when I try to save the user:
SQLite3::SQLException: users.email may not be NULL
Am I suppose to change something in the migration?