Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/database/postgres_partition.rb')
-rw-r--r--lib/gitlab/database/postgres_partition.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/database/postgres_partition.rb b/lib/gitlab/database/postgres_partition.rb
index eda11fd8382..e4f70ee1745 100644
--- a/lib/gitlab/database/postgres_partition.rb
+++ b/lib/gitlab/database/postgres_partition.rb
@@ -17,7 +17,9 @@ module Gitlab
for_identifier(identifier).first!
end
- scope :for_parent_table, ->(name) { where("parent_identifier = concat(current_schema(), '.', ?)", name).order(:name) }
+ scope :for_parent_table, ->(name) do
+ where("parent_identifier = concat(current_schema(), '.', ?)", name).order(:name)
+ end
def self.partition_exists?(table_name)
where("identifier = concat(current_schema(), '.', ?)", table_name).exists?