method

column_spec_for_primary_key

rails latest stable - Class: ActiveRecord::ConnectionAdapters::MySQL::ColumnDumper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

column_spec_for_primary_key(column)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/mysql/schema_dumper.rb, line 19
        def column_spec_for_primary_key(column)
          spec = super
          spec.delete(:auto_increment) if column.type == :integer && column.auto_increment?
          spec
        end