• Drew Blessing's avatar
    Reload the schema before restoring a database backup · 4be6bd5b
    Drew Blessing authored
    If a user tries to downgrade and restore after a failed upgrade,
    the database may still contain newer tables. Reload the older
    schema before restoring the database to avoid future upgrade
    problems. Also, add a rake task to help users add migration
    versions to the database so it's easier to recover from these
    errors if they do occur. Fixes #13419
    4be6bd5b
restore_after_failure.md 2.71 KB