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

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

class CreateSystemAccessMicrosoftApplication < Gitlab::Database::Migration[2.1]
  enable_lock_retries!

  def change
    create_table :system_access_microsoft_applications do |t|
      t.timestamps_with_timezone null: false
      t.references :namespace, index: { unique: true }, foreign_key: { on_delete: :cascade }
      t.boolean :enabled, null: false, default: false
      t.text :tenant_xid, null: false, limit: 255
      t.text :client_xid, null: false, limit: 255
      t.text :login_endpoint, null: false, limit: 255, default: 'https://login.microsoftonline.com'
      t.text :graph_endpoint, null: false, limit: 255, default: 'https://graph.microsoft.com'
      t.binary :encrypted_client_secret, null: false
      t.binary :encrypted_client_secret_iv, null: false
    end
  end
end