Method: Sequel::Model::Associations::ManyToOneAssociationReflection#primary_key
- Defined in:
- lib/sequel/model/associations.rb
permalink #primary_key ⇒ Object
The column(s) in the associated table that the key in the current table references (either a symbol or an array).
915 916 917 |
# File 'lib/sequel/model/associations.rb', line 915 def primary_key cached_fetch(:primary_key){associated_class.primary_key || raise(Error, "no primary key specified for #{associated_class.inspect}")} end |