Commit 0c57db90 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'remove-model-from-partition-manager' into 'master'

Remove DeletedRecord from partition manager

See merge request gitlab-org/gitlab!71886
parents 6bb96f42 1538044e
......@@ -2,8 +2,7 @@
Gitlab::Database::Partitioning.register_models([
AuditEvent,
WebHookLog,
LooseForeignKeys::DeletedRecord
WebHookLog
])
if Gitlab.ee?
......
......@@ -45,4 +45,10 @@ RSpec.describe Gitlab::Database::Partitioning do
described_class.drop_detached_partitions
end
end
context 'ensure that the registered models have partitioning strategy' do
it 'fails when partitioning_strategy is not specified for the model' do
expect(described_class.registered_models).to all(respond_to(:partitioning_strategy))
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment