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 'spec/support/helpers/models/ci/partitioning_testing/schema_helpers.rb')
-rw-r--r--spec/support/helpers/models/ci/partitioning_testing/schema_helpers.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/spec/support/helpers/models/ci/partitioning_testing/schema_helpers.rb b/spec/support/helpers/models/ci/partitioning_testing/schema_helpers.rb
index df653c853b9..a47aaffdb43 100644
--- a/spec/support/helpers/models/ci/partitioning_testing/schema_helpers.rb
+++ b/spec/support/helpers/models/ci/partitioning_testing/schema_helpers.rb
@@ -6,15 +6,12 @@ module Ci
module_function
def with_routing_tables
- previous_table_name = CommitStatus.table_name
- CommitStatus.table_name = :p_ci_builds
- CommitStatus.descendants.each(&:reset_table_name)
+ # previous_table_name = Model.table_name
+ # Model.table_name = routing_table_name
yield
-
- ensure
- CommitStatus.table_name = previous_table_name
- CommitStatus.descendants.each(&:reset_table_name)
+ # ensure
+ # Model.table_name = previous_table_name
end
def setup(connection: Ci::ApplicationRecord.connection)