-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add change() method to migrations #3
Comments
reference of ruby on rails : http://edgeguides.rubyonrails.org/active_record_migrations.html#using-the-change-method |
cool! like it! |
👍 |
👍 :) |
👍 |
#593 |
👍 This idea is to reduce the cost of migration in 2 or more times. I know it by own experience. |
Phinx docs about that: http://docs.phinx.org/en/latest/migrations.html |
I'd like to make it real later. ;) |
I'm not a fan of creating reversible migrations that contain |
The idea is to implement the same code as in
up()
and determine how to roll back migration based on it. Migration in this case should be like a query and a builder that has two modes: up and down.It already exists in some third party libs such as https://phinx.org/
The text was updated successfully, but these errors were encountered: