docs: def run(migrations_path=None, url=None, port=None):
      """Run migrations"""
      logger = logging.getLogger()
      logger.setLevel(logging.INFO)
  
      if url:
          url = str(url).rstrip('/')
          options.url_registry_db = url
  
      if port:
          options.db_port = int(port)
  
      if migrations_path:
          migrations = migrate.collect(migrations_path)
      else:
          migrations = migrate.collect()
  
      func = partial(migrate.run_migrations, migrations)
      IOLoop.instance().run_sync(func)