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

batched_background_migration.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 65e9de4b2bd0666a1d9748fc58ce7425a9d8b3ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module API
  module Entities
    class BatchedBackgroundMigration < Grape::Entity
      expose :id, documentation: { type: :string, example: "1234" }
      expose :job_class_name, documentation: { type: :string, example: "CopyColumnUsingBackgroundMigrationJob" }
      expose :table_name, documentation: { type: :string, example: "events" }
      expose :column_name, documentation: { type: :string, example: "id" }
      expose :status_name, as: :status, override: true, documentation: { type: :string, example: "active" }
      expose :progress, documentation: { type: :float, example: 50 }
      expose :created_at, documentation: { type: :dateTime, example: "2022-11-28T16:26:39+02:00" }
    end
  end
end