debian-mirror-gitlab/db/migrate/20210813101742_create_zentao_tracker_data.rb
2021-10-27 15:23:28 +05:30

18 lines
614 B
Ruby

# 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