summaryrefslogtreecommitdiff
path: root/config/initializers/fill_shards.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers/fill_shards.rb')
-rw-r--r--config/initializers/fill_shards.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/fill_shards.rb b/config/initializers/fill_shards.rb
new file mode 100644
index 00000000000..d5071c7d556
--- /dev/null
+++ b/config/initializers/fill_shards.rb
@@ -0,0 +1,3 @@
+return if Gitlab::Database.read_only?
+
+Shard.populate!