diff options
Diffstat (limited to 'doc/update')
-rw-r--r-- | doc/update/README.md | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/update/README.md b/doc/update/README.md index 93879efb19e..b183df22589 100644 --- a/doc/update/README.md +++ b/doc/update/README.md @@ -122,13 +122,15 @@ If using GitLab 12.9 and newer, run: sudo gitlab-rails runner -e production 'puts Gitlab::BackgroundMigration.remaining' ``` -If using GitLab 12.8 and older, run the following using a Rails console: +If using GitLab 12.8 and older, run the following using a [Rails console](../administration/troubleshooting/debug.md#starting-a-rails-console): ```ruby puts Sidekiq::Queue.new("background_migration").size Sidekiq::ScheduledSet.new.select { |r| r.klass == 'BackgroundMigrationWorker' }.size ``` +--- + **For installations from source** If using GitLab 12.9 and newer, run: @@ -138,13 +140,16 @@ cd /home/git/gitlab sudo -u git -H bundle exec rails runner -e production 'puts Gitlab::BackgroundMigration.remaining' ``` -If using GitLab 12.8 and older, run the following using a Rails console: +If using GitLab 12.8 and older, run the following using a [Rails console](../administration/troubleshooting/debug.md#starting-a-rails-console): ```ruby puts Sidekiq::Queue.new("background_migration").size Sidekiq::ScheduledSet.new.select { |r| r.klass == 'BackgroundMigrationWorker' }.size ``` +There is also a [rake task](../administration/raketasks/maintenance.md#display-status-of-database-migrations) +for displaying the status of each database migration. + ## Upgrading to a new major version Major versions are reserved for backwards incompatible changes. We recommend that |