Saving Without Validation

How do you save a model without validation? In my migration I want to
make a change to every row in a model but validation rules have
evolved over time and some of the older records are not validating…
argh…

Any suggestions? :slight_smile:


John K.
[email protected]

http://www.kopanas.com
http://www.cusec.net
http://www.soen.info

Hi John,

John K. wrote:

How do you save a model without validation?

object.save_with_validation(false)

Best regards,
Bill

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs