Fix ActiveRecord::Base undefined method "delete_if"

ActiveRecord::Base doesn't include `delete_if` method, array does