#primary_key (rw)
Defines the primary key field – can be overridden in subclasses. Overwriting will negate any effect of the primary_key_prefix_type
setting, though.
# File 'activerecord/lib/active_record/attribute_methods/primary_key.rb', line 70
def primary_key @primary_key = reset_primary_key unless defined? @primary_key @primary_key end