ruby - New validation causes old migration to fail in Rails -


i added new validation model. now, when run migrations on old database dump, have error in middle save()! method description: validation failed: user can't blank.

how can avoid problem? way edit migration work database dumps now?

solution found simple, don't use .save method on model, validates fields. instead, use .update.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -