debian-mirror-gitlab/app/models/merge_request/diff_llm_summary.rb
2023-07-09 08:55:56 +05:30

13 lines
386 B
Ruby

# rubocop:disable Style/ClassAndModuleChildren
# frozen_string_literal: true
class MergeRequest::DiffLlmSummary < ApplicationRecord
belongs_to :merge_request_diff
belongs_to :user, optional: true
validates :provider, presence: true
validates :content, presence: true, length: { maximum: 2056 }
enum provider: { openai: 0 }
end
# rubocop:enable Style/ClassAndModuleChildren