Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20230616214220_create_system_access_microsoft_graph_access_tokens.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: df196280d0ce60b3b2060a81aa32378024a791ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class CreateSystemAccessMicrosoftGraphAccessTokens < Gitlab::Database::Migration[2.1]
  def change
    create_table :system_access_microsoft_graph_access_tokens do |t|
      t.timestamps_with_timezone null: false
      t.references :system_access_microsoft_application,
        index: { name: 'unique_index_sysaccess_ms_access_tokens_on_sysaccess_ms_app_id', unique: true },
        foreign_key: { on_delete: :cascade }
      t.integer :expires_in, null: false
      t.binary :encrypted_token, null: false
      t.binary :encrypted_token_iv, null: false
    end
  end
end