-
Notifications
You must be signed in to change notification settings - Fork 26
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
Feature Request: Reversible migrations #9
Comments
That's a nice idea. I guess it could be implemented by checking if |
@axelson I like your idea. Would you like to issue a pull request with the change? |
Thank you! I likely wouldn't get this anytime soon. So it's probably best if you or someone else tackles it. |
I would love to have this feature as well, and I may have some time to implement this. How should checks for the For example, given this migration: defmodule MyMigration do
use Ecto.Migration
def change do
create table(:mytable) do
add(:some_field, :uuid, null: false)
timestamps()
end
end
end Ecto migrations will generate rollback code that will drop |
It would be great if excellent_migrations could enforce that a migration is reversible as a check.
The text was updated successfully, but these errors were encountered: