I have a devise model that differs from the default. It has extra attributes.
For example, my devise user has an email, password, and also a career. I'd like to write a line of code that will delete the career from the currently signed in user. I like to imagine that it would look something like this
current_user.career.delete
This would ideally empty the career from the database, so that current_user.career
would then return nil
until the user is updated again to add a career.
How can I do this?