Skip to content
Snippets Groups Projects
Commit b1fd8466 authored by Mayra Cabrera's avatar Mayra Cabrera Committed by Achilleas Pipinellis
Browse files

Removes regular migrations from background ones

Specifies that background migrations should be scheduled as post
deployment migrations
parent a2fe68c0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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:
 
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment