Where did you get that create!
would delete something?
Here’s how to delete all secondary emails for a user
UserEmail.where(user_id: 1234, primary: false).destroy_all
Where did you get that create!
would delete something?
Here’s how to delete all secondary emails for a user
UserEmail.where(user_id: 1234, primary: false).destroy_all