<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def migration(self, from_ver: int, to_ver: int):
 """Decorator to create and register a migration. """

        def decorator(func):
            migration = Migration(from_ver, to_ver, func)
            self.register_migration(migration)
            return func
        return decorator