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?
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?
Hi John,
John Kopanas wrote:
How do you save a model without validation?
object.save_with_validation(false)
Best regards, Bill