diff options
Diffstat (limited to 'app/models/merge_request/diff_llm_summary.rb')
-rw-r--r-- | app/models/merge_request/diff_llm_summary.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/merge_request/diff_llm_summary.rb b/app/models/merge_request/diff_llm_summary.rb index 5e7d80712e2..e13fe5e1f50 100644 --- a/app/models/merge_request/diff_llm_summary.rb +++ b/app/models/merge_request/diff_llm_summary.rb @@ -5,6 +5,7 @@ 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 } |