blob: e13fe5e1f5079f6b2afa600a49e726997e9dc1e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# rubocop:disable Style/ClassAndModuleChildren
# frozen_string_literal: true
class MergeRequest::DiffLlmSummary < ApplicationRecord
belongs_to :merge_request_diff
belongs_to :user, optional: true
validates :merge_request_diff_id, uniqueness: true
validates :provider, presence: true
validates :content, presence: true, length: { maximum: 2056 }
enum provider: { openai: 0 }
end
# rubocop:enable Style/ClassAndModuleChildren
|