method

join_table_name

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::Associations::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

These similar methods exist in v7.1.3.2:

join_table_name(first_table_name, second_table_name) private

Generates a join table name from two provided table names. The names in the join table names end up in lexicographic order.

join_table_name("members", "clubs")         # => "clubs_members"
join_table_name("members", "special_clubs") # => "members_special_clubs"
Show source
Register or log in to add new notes.