lib/pg_trunk/operations/statistics/base.rb
# All attributes that can be used by statistics-related commands
All attributes that can be used by statistics-related commands
All attributes that can be used by statistics - related commands
def generated_name
      return if table.blank? || parts.blank?
      @generated_name ||= begin
        key_options = { kinds: kinds, parts: parts }
        identifier = "#{table.lean}_#{key_options}_stat"
        hashed_identifier = Digest::SHA256.hexdigest(identifier).first(10)
        PGTrunk::QualifiedName.wrap("stat_rails_#{hashed_identifier}")
      end
    end
def generated_name return if table . blank? || parts . blank? @generated_name ||= begin key_options = { kinds : kinds , parts : parts } identifier = "#{table.lean}_#{key_options}_stat" hashed_identifier = Digest :: SHA256 . hexdigest ( identifier ) . first ( 10 ) PGTrunk :: QualifiedName . wrap ( "stat_rails_#{hashed_identifier}" ) end end
All attributes that can be used by statistics-related commands
All attributes that can be used by statistics - related commands