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
|