Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/users/ghost_user_migration.rb')
-rw-r--r--app/models/users/ghost_user_migration.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/users/ghost_user_migration.rb b/app/models/users/ghost_user_migration.rb
index 1d93498e88b..4578e0503c3 100644
--- a/app/models/users/ghost_user_migration.rb
+++ b/app/models/users/ghost_user_migration.rb
@@ -8,5 +8,7 @@ module Users
belongs_to :initiator_user, class_name: 'User'
validates :user_id, presence: true
+
+ scope :consume_order, -> { order(:consume_after, :id) }
end
end