excellent_migrations icon indicating copy to clipboard operation
excellent_migrations copied to clipboard

Feature Request: Reversible migrations

Open axelson opened this issue 2 years ago • 4 comments

It would be great if excellent_migrations could enforce that a migration is reversible as a check.

axelson avatar Jul 08 '22 21:07 axelson

That's a nice idea.

I guess it could be implemented by checking if def down or def change is implemented. def change may not be reversible (e.g. if execute is used) but sometimes that may not be easy to detect.

Artur-Sulej avatar Jul 09 '22 09:07 Artur-Sulej

@axelson I like your idea. Would you like to issue a pull request with the change?

Artur-Sulej avatar Jul 24 '22 20:07 Artur-Sulej

Thank you! I likely wouldn't get this anytime soon. So it's probably best if you or someone else tackles it.

axelson avatar Jul 26 '22 04:07 axelson