blob: 557f4fef10b3831399e21be18d2a6de8069f0073 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
desc 'Checks if migrations in a branch require downtime'
task downtime_check: :environment do
repo = if defined?(Gitlab::License)
'gitlab-ee'
else
'gitlab-ce'
end
`git fetch https://gitlab.com/gitlab-org/#{repo}.git --depth 1`
Rake::Task['gitlab:db:downtime_check'].invoke('FETCH_HEAD')
end
|