I want to add multiple records at once in rails.

```
tax_rates.map {|tax_rate| TaxRate.new(tax_rate).save }

```

But in this there is the possibility that some records get saved and some are rejected.

Can anyone explain me how to reject all the records if some of the records fail?

Thanks in advance.