method
has_primary_key_column?
has_primary_key_column?()
private
Hide source
# File activerecord/lib/active_record/fixtures.rb, line 684 def has_primary_key_column? @has_primary_key_column ||= primary_key_name && model_class.columns.any? { |c| c.name == primary_key_name } end