method
primary_key
primary_key(table_name)
public
Hide source
# File activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb, line 429 def primary_key(table_name) #:nodoc: column = table_structure(table_name).find { |field| field['pk'] == 1 } column && column['name'] end