Use ```AllTeachersSurvey.first``` instead of ```Survey.where(type: 'AllTeachersSurvey')```