Created
October 6, 2014 18:49
-
-
Save jwrubel/ea5916c06efba6cd1e1e to your computer and use it in GitHub Desktop.
removing clever schools that are not math
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
classes_to_86 = [] | |
houston_schools = School.active.where(district_id: 1644) | |
houston_schools.each do |s| | |
s.classrooms.each do |c| | |
if (c.students.count == 0 && c.name.downcase.exclude?("math")) | |
c.deactivate! | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment