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

postgres_async_index.rb « async_indexes « database « gitlab « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d6b4b90bbd0d0ea9e15f737f1c89abd46ec019f9 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

FactoryBot.define do
  factory :postgres_async_index, class: 'Gitlab::Database::AsyncIndexes::PostgresAsyncIndex' do
    sequence(:name) { |n| "users_id_#{n}" }
    definition { "CREATE INDEX #{name} ON #{table_name} (id)" }
    table_name { "users" }
  end
end