Skip to content

Commit 166fcf9

Browse files
authored
Change find_by to find for school lookup
1 parent 2875111 commit 166fcf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/remove_students.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace :remove_students do
1313
remove_from_profile = ENV.fetch('REMOVE_FROM_PROFILE', 'false') == 'true'
1414
token = ENV.fetch('TOKEN', nil)
1515

16-
school = School.find_by(id: school_id)
16+
school = School.find(school_id)
1717
if school.nil?
1818
Rails.logger.error 'Please provide a valid school ID with SCHOOL_ID=your_school_id'
1919
exit 1

0 commit comments

Comments
 (0)