Fix incorrect query

SQL statement increases a "deleted_at" when Rails4_act_as_paranoid destroys a model.
with this bug fixes.