fix students and groups has_many relations only through actual memberships