Method: Sequel::Plugins::PgArrayAssociations::PgArrayToManyAssociationReflection#default_key
- Defined in:
- lib/sequel/plugins/pg_array_associations.rb
#default_key ⇒ Object
Use a default key name of *_ids, for similarity to other association types that use *_id for single keys.
218 219 220 |
# File 'lib/sequel/plugins/pg_array_associations.rb', line 218 def default_key :"#{singularize(self[:name])}_ids" end |