aliased_primary_key()
The alias for the primary key of the active_record’s table
# File activerecord/lib/active_record/associations/join_dependency/join_part.rb, line 48 def aliased_primary_key "#{aliased_prefix}_r0" end