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

ghost_user_migration.rb « users « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4578e0503c32d5db0121799759f69ecc16b7e993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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

    scope :consume_order, -> { order(:consume_after, :id) }
  end
end