Class: MergeRequestContextCommitDiffFile
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- MergeRequestContextCommitDiffFile
- Includes:
- DiffFile, Gitlab::EncodingHelper, ShaAttribute
- Defined in:
- app/models/merge_request_context_commit_diff_file.rb
Constant Summary
Constants included from Gitlab::EncodingHelper
Gitlab::EncodingHelper::ENCODING_CONFIDENCE_THRESHOLD
Class Method Summary collapse
-
.bulk_insert(*args) ⇒ Object
create MergeRequestContextCommitDiffFile by given diff file record(s).
Methods included from DiffFile
Methods included from Gitlab::EncodingHelper
#binary_io, #detect_binary?, #detect_libgit2_binary?, #encode!, #encode_binary, #encode_utf8
Methods inherited from ApplicationRecord
at_most, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, underscore, without_order
Class Method Details
.bulk_insert(*args) ⇒ Object
create MergeRequestContextCommitDiffFile by given diff file record(s)
14 15 16 |
# File 'app/models/merge_request_context_commit_diff_file.rb', line 14 def self.bulk_insert(*args) Gitlab::Database.bulk_insert('merge_request_context_commit_diff_files', *args) # rubocop:disable Gitlab/BulkInsert end |