Skip to content
Snippets Groups Projects
Commit 4fa822ae authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Improve code examples in background migrations docs

parent 93947307
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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]]]
)
```
 
Loading
Loading
@@ -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)
```
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