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

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

class CreateZentaoTrackerData < ActiveRecord::Migration[6.1]
  def change
    create_table :zentao_tracker_data do |t|
      t.references :integration, foreign_key: { on_delete: :cascade }, type: :bigint, index: true, null: false
      t.timestamps_with_timezone
      t.binary :encrypted_url
      t.binary :encrypted_url_iv
      t.binary :encrypted_api_url
      t.binary :encrypted_api_url_iv
      t.binary :encrypted_zentao_product_xid
      t.binary :encrypted_zentao_product_xid_iv
      t.binary :encrypted_api_token
      t.binary :encrypted_api_token_iv
    end
  end
end