Rails, Postgres: How to CREATE a pivot table and LEFT JOIN it to another table without hardcoding the columns – Postgresql
I am working in Rails and Postgres. I have a table Problems, which has a few columns. I have another table ExtraInfos, which references Problems and has three columns: problem_id, info_type, info_value. For example: Problems: id problem_type problem_group 0 type_x…