ad05e48863
User images and videos will get proxied through the Camo server in order to keep malicious sites from collecting the IP address of users.
5 lines
271 B
Ruby
5 lines
271 B
Ruby
# The `table_exists?` check is needed because during our migration rollback testing,
|
|
# `Shard.connected?` could be cached and return true even though the table doesn't exist
|
|
if Shard.connected? && Shard.table_exists? && !Gitlab::Database.read_only?
|
|
Shard.populate!
|
|
end
|