diff --git a/app/Models/Server.php b/app/Models/Server.php index 2867f95cb..f3edd82fb 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -199,6 +199,11 @@ class Server extends BaseModel return $this->hasOne(ServerSetting::class); } + public function dockerCleanupExecutions() + { + return $this->hasMany(DockerCleanupExecution::class); + } + public function proxySet() { return $this->proxyType() && $this->proxyType() !== 'NONE' && $this->isFunctional() && ! $this->isSwarmWorker() && ! $this->settings->is_build_server;