Fix transaction at ActiveRecord:delete()