Commit 1bb0448f authored by Grzegorz Bizon's avatar Grzegorz Bizon

Improve code examples in background migrations docs

parent 1edd063a
...@@ -56,8 +56,7 @@ Usually it's better to enqueue jobs in bulk, for this you can use ...@@ -56,8 +56,7 @@ Usually it's better to enqueue jobs in bulk, for this you can use
```ruby ```ruby
BackgroundMigrationWorker.perform_bulk( BackgroundMigrationWorker.perform_bulk(
[['BackgroundMigrationClassName', [1]], [['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 ...@@ -73,8 +72,7 @@ If you would like to schedule jobs in bulk with a delay, you can use
```ruby ```ruby
jobs = [['BackgroundMigrationClassName', [1]], jobs = [['BackgroundMigrationClassName', [1]],
['BackgroundMigrationClassName', [2]], ['BackgroundMigrationClassName', [2]]]
...]
BackgroundMigrationWorker.perform_bulk_in(5.minutes, jobs) BackgroundMigrationWorker.perform_bulk_in(5.minutes, jobs)
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment