.primary_key_prefix_type
The prefix type that will be prepended to every primary key column name. The options are :table_name
and :table_name_with_underscore
. If the first is specified, the Product class will look for “productid” instead of “id” as the primary column. If the latter is specified, the Product class will look for “product_id” instead of “id”. Remember that this is a global setting for all Active Records.
# File 'activerecord/lib/active_record/model_schema.rb', line 9
RDoc directive :singleton-method: primary_key_prefix_type