Method: ROM::Associations::ManyToOne#foreign_key

Defined in:
core/lib/rom/associations/many_to_one.rb

#foreign_keySymbol

Return configured or inferred FK name

Returns:

  • (Symbol)


25
26
27
# File 'core/lib/rom/associations/many_to_one.rb', line 25

def foreign_key
  definition.foreign_key || source.foreign_key(target.name)
end