debian-mirror-gitlab/db/migrate/20200430123614_create_project_access_tokens.rb
2020-06-23 00:09:42 +05:30

14 lines
410 B
Ruby

# frozen_string_literal: true
class CreateProjectAccessTokens < ActiveRecord::Migration[6.0]
DOWNTIME = false
def change
create_table :project_access_tokens, primary_key: [:personal_access_token_id, :project_id] do |t|
t.column :personal_access_token_id, :bigint, null: false
t.column :project_id, :bigint, null: false
end
add_index :project_access_tokens, :project_id
end
end