Skip to content

Instantly share code, notes, and snippets.

@jwrubel
Created October 6, 2014 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwrubel/ea5916c06efba6cd1e1e to your computer and use it in GitHub Desktop.
Save jwrubel/ea5916c06efba6cd1e1e to your computer and use it in GitHub Desktop.
removing clever schools that are not math
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