2022-10-11 01:57:18 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Users
|
|
|
|
class GhostUserMigration < ApplicationRecord
|
|
|
|
self.table_name = 'ghost_user_migrations'
|
|
|
|
|
|
|
|
belongs_to :user
|
|
|
|
belongs_to :initiator_user, class_name: 'User'
|
|
|
|
|
|
|
|
validates :user_id, presence: true
|
2023-01-13 00:05:48 +05:30
|
|
|
|
|
|
|
scope :consume_order, -> { order(:consume_after, :id) }
|
2022-10-11 01:57:18 +05:30
|
|
|
end
|
|
|
|
end
|