Class: Ci::BuildPendingState

Inherits:
ApplicationRecord show all
Includes:
Partitionable, SafelyChangeColumnDefault
Defined in:
app/models/ci/build_pending_state.rb

Constant Summary

Constants included from Partitionable

Partitionable::MUTEX

Constants inherited from ApplicationRecord

ApplicationRecord::MAX_PLUCK

Constants included from ResetOnUnionError

ResetOnUnionError::MAX_RESET_PERIOD

Instance Method Summary collapse

Methods inherited from ApplicationRecord

model_name, table_name_prefix

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

#serializable_hash

Instance Method Details

#crc32Object



18
19
20
21
22
# File 'app/models/ci/build_pending_state.rb', line 18

def crc32
  trace_checksum.try do |checksum|
    checksum.to_s.split('crc32:').last.to_i(16)
  end
end