method

column_spec_for_primary_key

Importance_0
v6.0.0 - Show latest stable - 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 15
        def column_spec_for_primary_key(column)
          return {} if default_primary_key?(column)
          spec = { id: schema_type(column).inspect }
          spec.merge!(prepare_column_options(column).except!(:null, :comment))
          spec[:default] ||= "nil" if explicit_primary_key_default?(column)
          spec
        end
Register or log in to add new notes.