Commit d61a7ba0 authored by pbair's avatar pbair

Load env for `gitlab:db:create_dynamic_partitions`

Change rake task that creates dynamic partitions, to have an explicit
dependency on :environment, so it can be run as a standalone task.
parent bb600be2
......@@ -114,7 +114,7 @@ namespace :gitlab do
end
desc 'Create missing dynamic database partitions'
task :create_dynamic_partitions do
task create_dynamic_partitions: :environment do
Gitlab::Database::Partitioning::PartitionCreator.new.create_partitions
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