Method: Sequel::Plugins::PgArrayAssociations::PgArrayToManyAssociationReflection#primary_key

Defined in:
lib/sequel/plugins/pg_array_associations.rb

#primary_keyObject

The primary key of the associated model.



260
261
262
# File 'lib/sequel/plugins/pg_array_associations.rb', line 260

def primary_key
  cached_fetch(:primary_key){associated_class.primary_key || raise(Error, "no primary key specified for #{associated_class.inspect}")}
end