Could we do this by checking whether attachable_id is null in SQL rather than a ruby-space test?