Skip to content

Add gitlab:db:dictionary:generate rake task

Matt Kasa requested to merge mattkasa-data-dictionary-rake into master

What does this MR do and why?

Adds the gitlab:db:dictionary:generate rake task and runs it after db:migrate to generate missing database dictionary docs for new tables.

Relates to gitlab-org/database-team/team-tasks#244 (closed)

How to set up and validate locally

  1. Create a database migration that adds a new table
  2. Run bin/rake db:migrate
  3. You should have a new file db/docs/<table_name>.yml

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading