Commit 8d23befa authored by Thong Kuah's avatar Thong Kuah

Merge branch...

Merge branch '336899-fix-gitlab-database-schemacachewithrenamedtable-does-not-work-with-many-databases-2' into 'master'

Resolve "Fix `Gitlab::Database::SchemaCacheWithRenamedTable` does not work with many databases"

See merge request gitlab-org/gitlab!74502
parents 88767576 cec341d1
......@@ -42,7 +42,7 @@ module Gitlab
def renamed_tables_cache
@renamed_tables ||= begin
Gitlab::Database::TABLES_TO_BE_RENAMED.select do |old_name, new_name|
ActiveRecord::Base.connection.view_exists?(old_name)
connection.view_exists?(old_name)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment