[openstreetmap/openstreetmap-website] Models in migrations (#2320)
Tom Hughes
notifications at github.com
Wed Jul 17 10:30:19 UTC 2019
I'm certainly more convinced than ever by this that the `strong_migrations` advice to handle removing columns via two commits where you first deploy something to ignore them and then deploy a migration to remove them (which still needs to be marked as unsafe by the way!) is just crazy.
The fundamental problem is that it ties together the git history and the migration history so you have to execute them in sync with each other - this idea here is one result, and a second is that you can't go back and forth through such a migration without also rolling git back and forth at the same time.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2320#issuecomment-512198117
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190717/6e5a8790/attachment-0001.html>
More information about the rails-dev
mailing list