Commit 1538044e authored by Adam Hegyi's avatar Adam Hegyi

Remove DeletedRecord from partition manager

This change removes LooseForeignKeys::DeletedRecord from the partition
manager initializer. Due to a change, we're not going to use partition
manager to manage the partitions for this table at the moment.
parent bb3a0e9c
......@@ -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