diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2019-09-02 13:28:57 -0500 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-09-03 15:25:49 -0500 |
commit | 4a046b0f2195798d08d5f24d2fae8b3b5c0273e9 (patch) | |
tree | 178ab5732e51ab9ffa7a047d5a218ec957df3761 | |
parent | 2f01437f445b26f459fd6164f1c462c4fa94edf6 (diff) | |
download | gitlab-ce-docs-fixes-scheduling-on-background-migrations-2-attempt.tar.gz |
Removes regular migrations from background onesdocs-fixes-scheduling-on-background-migrations-2-attempt
Specifies that background migrations should be scheduled as post
deployment migrations
-rw-r--r-- | doc/development/background_migrations.md | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/doc/development/background_migrations.md b/doc/development/background_migrations.md index 3fd95537eaa..a456bbc781f 100644 --- a/doc/development/background_migrations.md +++ b/doc/development/background_migrations.md @@ -61,8 +61,8 @@ migration classes must be defined in the namespace ## Scheduling -Scheduling a migration can be done in either a regular migration or a -post-deployment migration. To do so, simply use the following code while +Scheduling a background migration should be done in a post-deployment migration. +To do so, simply use the following code while replacing the class name and arguments with whatever values are necessary for your migration: @@ -283,10 +283,13 @@ the `services.properties` column. ## Testing -It is required to write tests for background migrations' scheduling migration -(either a regular migration or a post deployment migration), background -migration itself and a cleanup migration. You can use the `:migration` RSpec -tag when testing a regular / post deployment migration. +It is required to write tests for: + +- The background migrations' scheduling migration. +- The background migration itself. +- A cleanup migration. + +You can use the `:migration` RSpec tag when testing the migrations. See [README][migrations-readme]. When you do that, keep in mind that `before` and `after` RSpec hooks are going |