Email of the person/current_user is always empty

After I’ve signed up and confirmed my email, the “email” field of my Person is still empty. Why?

There’s the Email model from which I get fetch user’s email by person_id. But why is “person.email” or @current_user.email is always empty or nil? What’s the “Person.email” field for?

Hi there!

Indeed, this is not longer a used field but it’s still present because it just was never removed.

Some time ago, only one email was allowed per user. But now, multiple emails are allowed and stored in a separate table, emails.

Thanks for the reminder, this is definitely something that should be cleaned up.

Hopefully this clarifies things!