method
derive_join_table_name
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::ModelSchema
derive_join_table_name(first_table, second_table)public
Derives the join table name for first_table and second_table. The table names appear in alphabetical order. A common prefix is removed (useful for namespaced models like Music::Artist and Music::Record):
artists, records => artists_records records, artists => artists_records music_artists, music_records => music_artists_records