blob: 81f67e958c0149310ac8ac3d646039d105049528 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
FactoryBot.define do
factory :postgres_async_constraint_validation,
class: 'Gitlab::Database::AsyncConstraints::PostgresAsyncConstraintValidation' do
sequence(:name) { |n| "fk_users_id_#{n}" }
table_name { "users" }
trait :foreign_key do
constraint_type { :foreign_key }
end
trait :check_constraint do
constraint_type { :check_constraint }
end
end
end
|