summaryrefslogtreecommitdiff
path: root/doc/development/background_migrations.md
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-30 12:06:29 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-07 15:08:15 +0200
commit4fa822ae9d1a985c7cd9d5a63eae3a623fb16f50 (patch)
tree391d2ba30cb8fdc5132f165b9db65f12c6c2949f /doc/development/background_migrations.md
parent939473076a5ce357e978ffa24db9ef3981424342 (diff)
downloadgitlab-ce-4fa822ae9d1a985c7cd9d5a63eae3a623fb16f50.tar.gz
Improve code examples in background migrations docs
Diffstat (limited to 'doc/development/background_migrations.md')
-rw-r--r--doc/development/background_migrations.md6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/development/background_migrations.md b/doc/development/background_migrations.md
index a58f161fc30..72a34aa7de9 100644
--- a/doc/development/background_migrations.md
+++ b/doc/development/background_migrations.md
@@ -56,8 +56,7 @@ Usually it's better to enqueue jobs in bulk, for this you can use
```ruby
BackgroundMigrationWorker.perform_bulk(
[['BackgroundMigrationClassName', [1]],
- ['BackgroundMigrationClassName', [2]],
- ...]
+ ['BackgroundMigrationClassName', [2]]]
)
```
@@ -73,8 +72,7 @@ If you would like to schedule jobs in bulk with a delay, you can use
```ruby
jobs = [['BackgroundMigrationClassName', [1]],
- ['BackgroundMigrationClassName', [2]],
- ...]
+ ['BackgroundMigrationClassName', [2]]]
BackgroundMigrationWorker.perform_bulk_in(5.minutes, jobs)
```