method
primary_key
v3.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::TableDefinition
primary_key(name)public
Appends a primary key definition to the table definition. Can be called multiple times, but this is probably not a good idea.