method

primary_key

rails latest stable - Class: ActiveRecord::Migration::Compatibility::V5_0::TableDefinition
primary_key(name, type = :primary_key, **options)
public

No documentation available.

# File activerecord/lib/active_record/migration/compatibility.rb, line 338
          def primary_key(name, type = :primary_key, **options)
            type = :integer if type == :primary_key
            super
          end