diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-08 12:12:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-08 12:12:26 +0300 |
commit | 3c050fb24b757425987a7df4cb3497e1d792be8e (patch) | |
tree | e4031413c679ecf3e3126da1d1a8cbc3084d8377 /spec/factories/gitlab | |
parent | 14ac28d7c7fcf1aba321f521f3a980b03b7b090e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/gitlab')
-rw-r--r-- | spec/factories/gitlab/database/async_foreign_keys/postgres_async_constraint_validation.rb (renamed from spec/factories/gitlab/database/async_foreign_keys/postgres_async_foreign_key_validation.rb) | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/gitlab/database/async_foreign_keys/postgres_async_foreign_key_validation.rb b/spec/factories/gitlab/database/async_foreign_keys/postgres_async_constraint_validation.rb index 23f4049f1cb..81f67e958c0 100644 --- a/spec/factories/gitlab/database/async_foreign_keys/postgres_async_foreign_key_validation.rb +++ b/spec/factories/gitlab/database/async_foreign_keys/postgres_async_constraint_validation.rb @@ -5,5 +5,13 @@ FactoryBot.define do 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 |