Method: Sequel::Model::Associations::OneToManyAssociationReflection#default_key
- Defined in:
- lib/sequel/model/associations.rb
#default_key ⇒ Object
Default foreign key name symbol for key in associated table that points to current table’s primary key.
1049 1050 1051 |
# File 'lib/sequel/model/associations.rb', line 1049 def default_key :"#{underscore(demodulize(self[:model].name))}_id" end |