summaryrefslogtreecommitdiff
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-06-30 12:06:29 +0200
commit1bb0448f86c106a70a82627b3ffe84ed06a59081 (patch)
tree182af5f7c80954d56f8d32c87eabc9b9bfd6d104
parent1edd063a6c338e889d95def3e31aaca5420bfa5a (diff)
downloadgitlab-ce-1bb0448f86c106a70a82627b3ffe84ed06a59081.tar.gz
Improve code examples in background migrations docs
-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)
```