Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fill_shards.rb « initializers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 90c0d63e4feb2b82eb704d53fcf3d8997b1c22ca (plain)
1
2
3
4
5
6
7
# The explicit schema version check is needed because during our migration rollback testing,
# `Shard.connected?` could be cached and return true even though the table doesn't exist
return unless Shard.connected?
return unless ActiveRecord::Migrator.current_version >= 20190402150158
return if Gitlab::Database.read_only?

Shard.populate!