We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2875111 commit 166fcf9Copy full SHA for 166fcf9
lib/tasks/remove_students.rake
@@ -13,7 +13,7 @@ namespace :remove_students do
13
remove_from_profile = ENV.fetch('REMOVE_FROM_PROFILE', 'false') == 'true'
14
token = ENV.fetch('TOKEN', nil)
15
16
- school = School.find_by(id: school_id)
+ school = School.find(school_id)
17
if school.nil?
18
Rails.logger.error 'Please provide a valid school ID with SCHOOL_ID=your_school_id'
19
exit 1
0 commit comments