I have a user model and a team member model.
user.rb (most code below stripped except for important part)
has_many :team_members, :dependent => :restrict_with_exception
team_member.rb (most code below stripped except for important part)
I want to delete a user, but not remove the team members that belong to the user. What is the best way to do this?
It seems like the only
:dependent option I could use in
:nullify, but that doesn’t feel right to me.