diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-20 12:10:29 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-20 12:10:29 +0000 |
commit | 62c78157be8fe8888787162293f13945a5fa5d3e (patch) | |
tree | bcb134ee4b4a543b27341063fc6adb804dc3a3f4 /lib/gitlab/database/grant.rb | |
parent | 063d4b1caa1d04f50b2ba3290376de64dbb5fb07 (diff) | |
download | gitlab-ce-62c78157be8fe8888787162293f13945a5fa5d3e.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/database/grant.rb')
-rw-r--r-- | lib/gitlab/database/grant.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/database/grant.rb b/lib/gitlab/database/grant.rb index c8a30c68bc6..0093848ee6f 100644 --- a/lib/gitlab/database/grant.rb +++ b/lib/gitlab/database/grant.rb @@ -10,7 +10,7 @@ module Gitlab # We _must not_ use quote_table_name as this will produce double # quotes on PostgreSQL and for "has_table_privilege" we need single # quotes. - connection = ActiveRecord::Base.connection # rubocop: disable Database/MultipleDatabases + connection = ApplicationRecord.connection quoted_table = connection.quote(table) begin |