mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
17 lines
461 B
Ruby
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
|