Created
August 13, 2014 22:29
-
-
Save jayd3e/02dd588fb747cfb68169 to your computer and use it in GitHub Desktop.
This file contains 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
old_courses = [ | |
(1, "Physics 101"), | |
(2, "Physics 101") | |
] | |
# step1 | |
check for course_joins, posts, files on each one | |
# step2 | |
3 possible outcomes: | |
id=1 has stuff | |
id=2 has stuff | |
do nothing | |
id=1 doesn't have stuff | |
id=2 has stuff | |
delete 1 | |
id=1 has stuff | |
id=2 doesn't have stuff | |
delete 2 | |
id=1 doesn't have stuff | |
id=2 doesn't have stuff | |
delete 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment