debian-mirror-gitlab/config/initializers/fill_shards.rb
2018-12-13 13:39:08 +05:30

3 lines
74 B
Ruby

if Shard.connected? && !Gitlab::Database.read_only?
Shard.populate!
end