Flowdock
method

derive_join_table_name

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: 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
Show source
Register or log in to add new notes.