Rails + PostgreSQL: select all records where an attribute is missing in (in an association)

后端 未结 0 965
说谎
说谎 2021-01-21 15:13

I have this model/database structure:

class Car < ApplicationRecord
  has_many :car_documents

  scope :joined_relations_for_cars, -> do
    joins(\'LEFT JO         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题