Saving Without Validation


#1

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.
removed_email_address@domain.invalid

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


#2

Hi John,

John K. wrote:

How do you save a model without validation?

object.save_with_validation(false)

Best regards,
Bill