Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.
Ruby agplai-assistantdockerdsgvogdprhotwireissue-trackerjira-alternativeknowledge-basellmmcp-servermeeting-notesopen-sourceproject-managementredmine-alternativeruby-on-railsself-hostedticketingtime-tracking
# frozen_string_literal: true
# Per-org BYOK columns for embeddings, mirroring the existing chat columns
# (ai_access_token / ai_provider / preferred_chat_model). An org with its own
# embedding endpoint configured routes embeddings through it; orgs that leave
# these NULL fall back to the system AiCredential (effectively OpenAI), so this
# migration changes no behaviour on its own.
#
# All columns are additive + nullable → no backfill, no long lock.
class AddEmbeddingByokToOrganisations < ActiveRecord::Migration[8.0]
def change
add_column :organisations, :embedding_provider, :string
add_column :organisations, :embedding_model, :string
add_column :organisations, :embedding_api_base, :string
add_column :organisations, :embedding_access_token, :text
add_column :organisations, :embedding_organization_id, :string
end
end