debian-mirror-gitlab/lib/generators/batched_background_migration/USAGE

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
585 B
Text
Raw Normal View History

2023-05-27 22:25:52 +05:30
Description:
Generates files required for batched background migration.
Example:
rails g batched_background_migration my_batched_migration --table_name=users --column_name=id --feature_category=gitaly
This will create:
db/post_migrate/20230213215230_queue_my_batched_migration.rb
spec/migrations/20230213215230_queue_my_batched_migration_spec.rb
lib/gitlab/background_migration/my_batched_migration.rb
spec/lib/gitlab/background_migration/my_batched_migration_spec.rb
db/docs/batched_background_migrations/my_batched_migration.yml