debian-mirror-gitlab/lib/gitlab/database/migrations/observation.rb
2023-07-09 08:55:56 +05:30

17 lines
435 B
Ruby

# rubocop:disable Naming/FileName
# frozen_string_literal: true
module Gitlab
module Database
module Migrations
Observation = Struct.new(:version, :name, :walltime, :success, :total_database_size_change, :error_message,
:meta, :query_statistics, keyword_init: true) do
def to_json(...)
as_json.except('meta').to_json(...)
end
end
end
end
end
# rubocop:enable Naming/FileName