Adds index to degree_id in studies.