diff options
Diffstat (limited to 'app/models/bulk_import.rb')
-rw-r--r-- | app/models/bulk_import.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/bulk_import.rb b/app/models/bulk_import.rb index 2200a66b3c2..2565ad5f2b8 100644 --- a/app/models/bulk_import.rb +++ b/app/models/bulk_import.rb @@ -17,7 +17,7 @@ class BulkImport < ApplicationRecord enum source_type: { gitlab: 0 } scope :stale, -> { where('created_at < ?', 8.hours.ago).where(status: [0, 1]) } - scope :order_by_created_at, -> (direction) { order(created_at: direction) } + scope :order_by_created_at, ->(direction) { order(created_at: direction) } state_machine :status, initial: :created do state :created, value: 0 |