method

blobs_primary_key_type

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: CreateActiveStorageVariantRecords
blobs_primary_key_type() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/db/update_migrate/20191206030411_create_active_storage_variant_records.rb, line 21
    def blobs_primary_key_type
      pkey_name = connection.primary_key(:active_storage_blobs)
      pkey_column = connection.columns(:active_storage_blobs).find { |c| c.name == pkey_name }
      pkey_column.bigint? ? :bigint : pkey_column.type
    end
Register or log in to add new notes.