method
primary_key

Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::ConnectionAdapters::TableDefinition
primary_key(name, type = :primary_key, options = {})
public
Appends a primary key definition to the table definition. Can be called multiple times, but this is probably not a good idea.