From 4fa822ae9d1a985c7cd9d5a63eae3a623fb16f50 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Fri, 30 Jun 2017 12:06:29 +0200 Subject: Improve code examples in background migrations docs --- doc/development/background_migrations.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'doc/development/background_migrations.md') 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) ``` -- cgit v1.2.1