def create_schema(self, check_if_exists=False, sync_schema=True,
                      verbosity=1):

        # safety check
        _check_schema_name(self.schema_name)
        cursor = connection.cursor()

        if check_if_exists and schema_exists(self.schema_name):
            return False

        # create the schema
        cursor.execute('CREATE SCHEMA %s' % self.schema_name)

        if sync_schema:
            call_command('migrate_schemas',
                         schema_name=self.schema_name,
                         interactive=False,
                         verbosity=verbosity)

        connection.set_schema_to_public()
Creates the schema 'schema_name' for this tenant. Optionally checks if
dataset/ETHPy150Open tomturner/django-tenants/django_tenants/models.py/TenantMixin.create_schema