我正在像这样进行多态连接:
Object.joins(:customer).includes("jobs.name").merge(@customer.children.scoped).where("name LIKE :name OR job_number LIKE :name", {:name => "JOB" } )
它正在返回:
Mysql2::Error: Column 'name' in where clause is ambiguous
任何人都知道如何使这不模棱两可?:)