Commit f934bd0e authored by Alex Kalderimis's avatar Alex Kalderimis

Merge branch 'pb-fix-rake-error-with-no-table' into 'master'

Fix table error from BG migration rake task

See merge request gitlab-org/gitlab!75692
parents 6f962089 d19e3065
...@@ -243,7 +243,9 @@ namespace :gitlab do ...@@ -243,7 +243,9 @@ namespace :gitlab do
# Only for development environments, # Only for development environments,
# we execute pending data migrations inline for convenience. # we execute pending data migrations inline for convenience.
Rake::Task['db:migrate'].enhance do Rake::Task['db:migrate'].enhance do
Rake::Task['gitlab:db:execute_batched_migrations'].invoke if Rails.env.development? if Rails.env.development? && Gitlab::Database::BackgroundMigration::BatchedMigration.table_exists?
Rake::Task['gitlab:db:execute_batched_migrations'].invoke
end
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment