Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/db/docs_spec.rb')
-rw-r--r--spec/db/docs_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/db/docs_spec.rb b/spec/db/docs_spec.rb
index 19edf3da0d5..03f944735a1 100644
--- a/spec/db/docs_spec.rb
+++ b/spec/db/docs_spec.rb
@@ -15,6 +15,8 @@ RSpec.shared_examples 'validate dictionary' do |objects, directory_path, require
milestone
gitlab_schema
schema_inconsistencies
+ sharding_key
+ desired_sharding_key
]
end
@@ -184,7 +186,7 @@ RSpec.describe 'Tables documentation', feature_category: :database do
database_base_models = Gitlab::Database.database_base_models.reject { |k, _| k.in?(excluded) }
tables = database_base_models.flat_map { |_, m| m.connection.tables }.sort.uniq
directory_path = File.join('db', 'docs')
- required_fields = %i[feature_categories table_name gitlab_schema]
+ required_fields = %i[feature_categories table_name gitlab_schema milestone]
include_examples 'validate dictionary', tables, directory_path, required_fields
end