Commit 487894f1 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'rake-db-migrate-status-docs' into 'master'

Document db:migrate:status rake task

Closes #63908

See merge request gitlab-org/gitlab-ce!30202
parents 942ea3ce c729e3dd
...@@ -251,3 +251,22 @@ sudo gitlab-rake gitlab:exclusive_lease:clear[project_housekeeping:*] ...@@ -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) # to clear a lease for repository garbage collection in a specific project: (id=4)
sudo gitlab-rake gitlab:exclusive_lease:clear[project_housekeeping: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
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