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

postgres_partitioning.rb « initializers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6c8a72d9bd57dbe07113980146d6302ef297e3dc (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

# Make sure we have loaded partitioned models here
# (even with eager loading disabled).

begin
  Gitlab::Database::Partitioning::PartitionCreator.new.create_partitions
rescue ActiveRecord::ActiveRecordError, PG::Error
  # ignore - happens when Rake tasks yet have to create a database, e.g. for testing
end