Kevin is right. However, he lacks a critical point.
When restoring from a backup, the schema_migrations table is restored, which keeps track of which migrations to perform. If these thirty migrations were run in the database that you restored, they will not work.
However, your code is thirty jumps in front of a snapshot of your backup database.
This can happen to me if I turn around and then take a backup right away. Although the migrations were done in production, I get a backup until working hours before my deployment. I usually like to wait a day and get a backup the next day.
Or, don't worry about it. Your backup is located before these thirty migrations, but then they were applied, so the migrations made your scheme match the version of your code. This is a good thing.
Do not sweat and update again tomorrow when the backup has your changes.
source share