Flowdock
method

primary_key_prefix_type

Importance_1
v3.1.0 - Show latest stable - 0 notes - Class: ActiveRecord::Base
primary_key_prefix_type public

Accessor for 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.

Show source
Register or log in to add new notes.