diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-22 03:10:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-22 03:10:57 +0300 |
commit | 97ec5466b81f97d5bae81e227a3c0f871658545e (patch) | |
tree | 9d785a4cbf493d8a0b2134cf4a4e8345ac5be69b /spec/factories | |
parent | 6b1cf9e9ce2308c3867a241cbbcade8099540604 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/gitlab/database/async_indexes/postgres_async_index.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/gitlab/database/async_indexes/postgres_async_index.rb b/spec/factories/gitlab/database/async_indexes/postgres_async_index.rb index d6b4b90bbd0..e3f366c17eb 100644 --- a/spec/factories/gitlab/database/async_indexes/postgres_async_index.rb +++ b/spec/factories/gitlab/database/async_indexes/postgres_async_index.rb @@ -5,5 +5,9 @@ FactoryBot.define do sequence(:name) { |n| "users_id_#{n}" } definition { "CREATE INDEX #{name} ON #{table_name} (id)" } table_name { "users" } + + trait :with_drop do + definition { "DROP INDEX #{name}" } + end end end |