def METHOD_NAME(self, db, app_label, model_name=None, **hints):
    # Coding system databases are named <coding_system>_<release_name>_<valid_from date>
    # e.g. snomedct_v1_20221101
    # Migrations are only allowed for coding system models for matching databases
    # (i.e. databases with aliases that start with the coding system app label)
    # For all other app models, migrations are only allowed for the default database
    if app_label in CODING_SYSTEMS:
        return db.startswith(app_label)
    return db == DEFAULT_DB_ALIAS