blob: f07b1875ce075a67b077355a2d193115d0774834 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# 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
|