[openstreetmap/openstreetmap-website] Future of db/functions? (#3110)

Tobias notifications at github.com
Wed Mar 3 12:36:01 UTC 2021

> I believe we should just ditch the old migrations, say every migration over 2 years old.

What we do at betterplace.org is: We run https://github.com/jalkoby/squasher about once a year or so which gives us a single migration file which creates the DB in just the way that it would look like after running all single migrations. This still allows to run migrations and end up with a correct DB setup.

I did in fact try out to use squasher around last December/January for this project but ran into errors that looked like they are PostgreSQL related … or maybe had something to do with special indexes or primay keys(?) (It might be the same as the composite_primary_keys gem you guys talk about in the Rails6.1 branch).

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210303/93c1b45a/attachment.htm>

More information about the rails-dev mailing list