Method: Sequel::Model::Associations::ManyToOneAssociationReflection#default_key

Defined in:
lib/sequel/model/associations.rb

#default_keyObject

Default foreign key name symbol for foreign key in current model’s table that points to the given association’s table’s primary key.



872
873
874
# File 'lib/sequel/model/associations.rb', line 872

def default_key
  :"#{self[:name]}_id"
end