The column approval_merge_request_rules_users.project_id has a foreign key so cannot be allowed_to_be_missing_foreign_key

Job #11072719920 failed for a67729fb:

Failures:
  1) new tables missing sharding_key ensures all sharding_key columns exist and reference projects, namespaces or organizations
     Failure/Error:
       expect(has_foreign_key?(table_name, column_name)).to eq(false),
         "The column `#{table_name}.#{column_name}` has a foreign key so cannot be " \
           "allowed_to_be_missing_foreign_key. " \
           "If this is a foreign key referencing the specified table #{referenced_table_name} " \
           "then you must remove it from allowed_to_be_missing_foreign_key"
       The column `approval_merge_request_rules_users.project_id` has a foreign key so cannot be allowed_to_be_missing_foreign_key. If this is a foreign key referencing the specified table projects then you must remove it from allowed_to_be_missing_foreign_key
       Diff:
       @@ -1 +1 @@
       -false
       +true
     # ./spec/lib/gitlab/database/sharding_key_spec.rb:140:in `block (4 levels) in <main>'
     # ./spec/lib/gitlab/database/sharding_key_spec.rb:134:in `each'
     # ./spec/lib/gitlab/database/sharding_key_spec.rb:134:in `block (3 levels) in <main>'
     # ./spec/lib/gitlab/database/sharding_key_spec.rb:131:in `each'
     # ./spec/lib/gitlab/database/sharding_key_spec.rb:131:in `block (2 levels) in <main>'
     # ./spec/spec_helper.rb:477:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/sidekiq_sharding/validator.rb:42:in `enabled'
     # ./spec/spec_helper.rb:476:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:471:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
     # ./spec/spec_helper.rb:462:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:458:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/application_context.rb:102:in `with_raw_context'
     # ./spec/spec_helper.rb:458:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:429:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/ci/config/feature_flags.rb:38:in `ensure_correct_usage'
     # ./spec/spec_helper.rb:428:in `block (2 levels) in <top (required)>'
     # ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
     # ./spec/support/fast_quarantine.rb:22:in `block (2 levels) in <main>'
     # ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <main>'
     # ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
     # ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <main>'
Finished in 1 minute 13.07 seconds (files took 1 minute 30.12 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/lib/gitlab/database/sharding_key_spec.rb:129 # new tables missing sharding_key ensures all sharding_key columns exist and reference projects, namespaces or organizations
Edited by 🤖 GitLab Bot 🤖