#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 111
def primary_key if PRIMARY_KEY_NOT_SET.equal?(@primary_key) @primary_key = reset_primary_key end @primary_key end