Skip to content

Remove Person from Team

Cory Boyd edited this page May 30, 2014 · 1 revision
person = Person.find(26217)
team = Team.find_by(slug: 'rvm')

# Find the relation between this person and the team and destroy it
member_relation = team.member_relations.find_by(person: person)
member_relation.destroy!

Clone this wiki locally