diff options
Diffstat (limited to 'app/models/users/ghost_user_migration.rb')
-rw-r--r-- | app/models/users/ghost_user_migration.rb | 2 |
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 |