Flowdock
join_table_name(first_table_name, second_table_name) private

Generate a join table name from two provided tables names. The order of names in join name is determined by lexical precedence.

  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.