Skip to content
  • Stefan Kanev's avatar
    a013b082
    create_join_table uses same logic as HABTM reflections · a013b082
    Stefan Kanev authored
    Before this change, create_join_table would not remove the common prefix
    in the join table name, unlike ActiveRecord::Reflections. A HABTM
    between Music::Artist and Music::Record would use a table
    music_artists_records, while create_join table would create
    music_artists_music_records.
    a013b082
    create_join_table uses same logic as HABTM reflections
    Stefan Kanev authored
    Before this change, create_join_table would not remove the common prefix
    in the join table name, unlike ActiveRecord::Reflections. A HABTM
    between Music::Artist and Music::Record would use a table
    music_artists_records, while create_join table would create
    music_artists_music_records.
Loading