Move sharding_key_spec.rb to organizations directory

What does this MR do and why?

This MR moves spec/lib/gitlab/database/sharding_key_spec.rb to spec/lib/gitlab/organizations/sharding_key_spec.rb.

The sharding_key_spec is about sharding validation for organizational tables, not database-specific functionality. Moving it from spec/lib/gitlab/database/ to spec/lib/gitlab/organizations/ better reflects its purpose and ownership by the Tenant Scale team.

Related issues

Follow-up to !213402 (merged) (comment 2900915809)

How to set up and validate locally

  1. Verify the spec still passes in its new location:
    bin/rspec spec/lib/gitlab/organizations/sharding_key_spec.rb

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading