PG::Error: ERROR: column reference "name" is ambiguous has been fixed