<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def allow_migrate(self, db, model):
 """ Make sure self._apps go to their own db """

        if model._meta.app_label in self._apps:
            return getattr(model, '_db_alias', model._meta.app_label) == db
        return None