summaryrefslogtreecommitdiff
path: root/app/services/deployments/update_environment_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/deployments/update_environment_service.rb')
-rw-r--r--app/services/deployments/update_environment_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/deployments/update_environment_service.rb b/app/services/deployments/update_environment_service.rb
index 83c37257297..19b950044d0 100644
--- a/app/services/deployments/update_environment_service.rb
+++ b/app/services/deployments/update_environment_service.rb
@@ -26,7 +26,7 @@ module Deployments
end
def update_environment(deployment)
- ActiveRecord::Base.transaction do # rubocop: disable Database/MultipleDatabases
+ ApplicationRecord.transaction do
# Renew attributes at update
renew_external_url
renew_auto_stop_in