Files
gitlab-foss/db/migrate/20240419082037_create_ai_self_hosted_models.rb
2024-05-14 15:16:45 +00:00

17 lines
479 B
Ruby

# frozen_string_literal: true
class CreateAiSelfHostedModels < Gitlab::Database::Migration[2.2]
milestone '17.0'
def change
create_table :ai_self_hosted_models do |t|
t.timestamps_with_timezone null: false
t.integer :model, limit: 2, null: false
t.text :endpoint, limit: 2048, null: false
t.text :name, limit: 255, null: false, index: { unique: true }
t.binary :encrypted_api_token
t.binary :encrypted_api_token_iv
end
end
end