Skip to content

Instantly share code, notes, and snippets.

@romulostorel
Created April 3, 2013 17:13
Show Gist options
  • Save romulostorel/5303177 to your computer and use it in GitHub Desktop.
Save romulostorel/5303177 to your computer and use it in GitHub Desktop.
def change
MultipleClassroom.all.each do |multiple_classroom|
multiple_classroom.academic_classrooms << multiple_classroom.first_academic_classroom if multiple_classroom.first_academic_classroom
multiple_classroom.academic_classrooms << multiple_classroom.second_academic_classroom if multiple_classroom.second_academic_classroom
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment