gitlab-org--gitlab-foss/app/models/users/ghost_user_migration.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
321 B
Ruby
Raw Normal View History

# 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