gitlab-org--gitlab-foss/db/migrate/20210913010411_create_agent_project_authorizations.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
383 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class CreateAgentProjectAuthorizations < Gitlab::Database::Migration[1.0]
def change
create_table :agent_project_authorizations do |t|
t.bigint :project_id, null: false
t.bigint :agent_id, null: false
t.jsonb :config, null: false
t.index :project_id
t.index [:agent_id, :project_id], unique: true
end
end
end