sudo gitlab-rake db:schema:dump

Category: GitLab

sudo gitlab-rake db:schema:dump

Dump the current database schema

Writes the database structure to a schema file that GitLab uses to rebuild the database. Run it after manual schema changes so the file matches reality. The output is meant for the repository, not for humans.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.