Files
gitlab-foss/db/migrate/20250120164332_create_queries_service_ping.rb
2025-01-23 10:36:05 +00:00

17 lines
461 B
Ruby

# frozen_string_literal: true
class CreateQueriesServicePing < Gitlab::Database::Migration[2.2]
milestone '17.9'
def change
create_table :queries_service_pings do |t|
t.timestamps_with_timezone null: false
t.datetime_with_timezone :recorded_at, null: false
t.jsonb :payload, null: false
t.belongs_to :organization, null: false, foreign_key: { on_delete: :cascade }
t.index [:recorded_at], unique: true
end
end
end