-
-
Notifications
You must be signed in to change notification settings - Fork 24
feat: add a opt-in validations of migrations #274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| //! # Example | ||
| //! | ||
| //! ``` | ||
| //! #[cfg(test)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this and the test annotation here and in the validate() example.
| self | ||
| } | ||
|
|
||
| /// Run the validations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Place the example here instead of at the root of the module?
| /// | ||
| /// See the [`validations`] module if you want to validate other things as well, like downward | ||
| /// migrations. | ||
| /// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also change this to use the validation module, so the logic is not duplicated.
3464c7a to
e944978
Compare
Some users may want to test downward migrations (#113). This is a
proposal for a composable set of checks (called validations), more or
less stringent, that users can run in a unit test.
More validations could be added in the future.
Closes #113