[Rails] create and delete group memberships