gitlab-org--gitlab-foss/config/initializers/fill_shards.rb

4 lines
74 B
Ruby
Raw Normal View History

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