module ActiveRecord::ConnectionAdapters::ColumnMethods
Public Instance Methods
Appends a primary key definition to the table definition. Can be called multiple times, but this is probably not a good idea.
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 327 def primary_key(name, type = :primary_key, **options) column(name, type, **options, primary_key: true) end