method

column_spec_for_primary_key

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: SchemaDumper
column_spec_for_primary_key(column) private

No documentation

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

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_dumper.rb, line 17
        def column_spec_for_primary_key(column)
          spec = {}
          spec[:id] = schema_type(column).inspect unless default_primary_key?(column)
          spec.merge!(prepare_column_options(column).except!(:null))
          spec[:default] ||= "nil" if explicit_primary_key_default?(column)
          spec
        end
Register or log in to add new notes.