debian-mirror-gitlab/lib/gitlab/database/migrations/observation.rb
2023-04-23 21:23:45 +05:30

17 lines
419 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,
: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