<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def run_all(self, direction):
 """ Runs all registered migrations :param direction: Can be on of two values, UP or DOWN """

        for key in sorted(migration_registry.keys):
            self.run(key, direction)