From c729e3ddfa5f72b682bb62ac4fa2fefc4898a39f Mon Sep 17 00:00:00 2001 From: Greg Myers Date: Tue, 16 Jul 2019 07:23:45 +0000 Subject: [PATCH] Document db:migrate:status rake task --- doc/administration/raketasks/maintenance.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/administration/raketasks/maintenance.md b/doc/administration/raketasks/maintenance.md index 2b31233d429..b3aa09abd1c 100644 --- a/doc/administration/raketasks/maintenance.md +++ b/doc/administration/raketasks/maintenance.md @@ -251,3 +251,22 @@ sudo gitlab-rake gitlab:exclusive_lease:clear[project_housekeeping:*] # to clear a lease for repository garbage collection in a specific project: (id=4) sudo gitlab-rake gitlab:exclusive_lease:clear[project_housekeeping:4] ``` + +## Display status of database migrations + +To check the status of migrations, you can use the following rake task: + +```bash +sudo gitlab-rake db:migrations:status +``` + +This will output a table with a `Status` of `up` or `down` for +each Migration ID. + +```bash +database: gitlabhq_production + + Status Migration ID Migration Name +-------------------------------------------------- + up migration_id migration_name +``` \ No newline at end of file