Try this
children = Child.where(:first_name => "Aaron")
children.each do |child|
parent = child.parent
end
if you need only publication details based on above condition you can run this
Parent.includes(:child).where('child.first_name' => "Aaron")
but for children you have to again make the query.