I have
class Autosalon < ActiveRecord::Base
has_many :autos
end
class Auto < ActiveRecord::Base
belongs_to :autosalon
end
autosalon has flag active=1 and date of registration, auto has flag active=1
How get all autos with active flag in autosalons with active flag without JOIN?
Without any joins/includes, you could use a SQL
inquery: