Class: BatchedGitRefUpdates::Deletion
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- BatchedGitRefUpdates::Deletion
- Includes:
- BulkInsertSafe, EachBatch, IgnorableColumns, PartitionedTable
- Defined in:
- app/models/batched_git_ref_updates/deletion.rb
Constant Summary collapse
- PARTITION_DURATION =
1.day
Constants included from BulkInsertSafe
BulkInsertSafe::ALLOWED_CALLBACKS, BulkInsertSafe::DEFAULT_BATCH_SIZE, BulkInsertSafe::MethodNotAllowedError, BulkInsertSafe::PrimaryKeySetError
Constants inherited from ApplicationRecord
Constants included from ResetOnUnionError
ResetOnUnionError::MAX_RESET_PERIOD
Class Method Summary collapse
Methods inherited from ApplicationRecord
cached_column_list, #create_or_load_association, declarative_enum, default_select_columns, id_in, id_not_in, iid_in, pluck_primary_key, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, #to_ability_name, underscore, where_exists, where_not_exists, with_fast_read_statement_timeout, without_order
Methods included from SensitiveSerializableHash
Class Method Details
.mark_records_processed(records) ⇒ Object
47 48 49 50 51 |
# File 'app/models/batched_git_ref_updates/deletion.rb', line 47 def self.mark_records_processed(records) update_by_partition(records) do |partitioned_scope| partitioned_scope.update_all(status: :processed) end end |