gitlab-org--gitlab-foss/config/initializers/fill_shards.rb
2018-11-07 17:25:29 +00:00

3 lines
74 B
Ruby

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