[](https://crates.io/crates/assert-migrator-reversible)
[](https://docs.rs/assert-migrator-reversible)
A crate for testing Sea Orm Migrators. To check if when you call up
and then down
on them. They work in both directions.
It runs your migrations up and down one at a time. Taking a look at the differences it does to a database. Checking if the reverse returns a database into it's previous state.
Example
The most common use case is simply to test if your Migrator
is reversible.
In a test. Then error if it is not.
To do this add the following test to your migrations project ...
Caveats
- This only tests for structural differences. It does not look for data changes.
- It uses an in-memeory SQLite database to test the migrator. Any Postgres or MySQL specific features may not work correctly.