method
primary_key
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::PrimaryKey::ClassMethods
primary_key()public
Defines the primary key field – can be overridden in subclasses. Overwriting will negate any effect of the primary_key_prefix_type setting, though.