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:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-20 15:06:01 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-20 15:06:01 +0300
commita68e9d3318c6847436f81f83eb347b29f52d1bff (patch)
tree511a790297f7e771f8d73025b9a1f9b4a0586d71 /lib/gitlab/seeder.rb
parent7bc0aff0b4e15fce828621d7e0919d84368f3d2b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/seeder.rb')
-rw-r--r--lib/gitlab/seeder.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gitlab/seeder.rb b/lib/gitlab/seeder.rb
index f96346322db..53cbd5b21ea 100644
--- a/lib/gitlab/seeder.rb
+++ b/lib/gitlab/seeder.rb
@@ -16,6 +16,8 @@ module Gitlab
class Seeder
extend ActionView::Helpers::NumberHelper
+ MASS_INSERT_PROJECT_START = 'mass_insert_project_'
+ MASS_INSERT_USER_START = 'mass_insert_user_'
ESTIMATED_INSERT_PER_MINUTE = 2_000_000
MASS_INSERT_ENV = 'MASS_INSERT'
@@ -24,7 +26,7 @@ module Gitlab
included do
scope :not_mass_generated, -> do
- where.not("path LIKE '#{Gitlab::Seeder::Projects::MASS_INSERT_NAME_START}%'")
+ where.not("path LIKE '#{MASS_INSERT_PROJECT_START}%'")
end
end
end
@@ -34,7 +36,7 @@ module Gitlab
included do
scope :not_mass_generated, -> do
- where.not("username LIKE '#{Gitlab::Seeder::Users::MASS_INSERT_USERNAME_START}%'")
+ where.not("username LIKE '#{MASS_INSERT_USER_START}%'")
end
end
end