ankane/strong_migrations
View on GitHub ↗ ★ 4,461 Ruby
Catch unsafe migrations in development
20 mentions on Hacker News by 18 people: 4 stories, 16 comments · first 2017-09-13 · latest 2026-09-26
20082026
-
There's also https://github.com/ankane/strong_migrations for Ruby The checks/explanations are fairly simple and straightforward so it also makes a good reference regardless of whether you're using the library
comment by nijave · 2026-09-26 · in Is your Postgres migration safe or not safe? -
…back to, regardless of what language I'm working in, is the checks performed by strong migrations https://github.com/ankane/strong_migrations?tab=readme-ov-fi... It's pretty popular, and has even been ported to other languages…
comment by wutwutwat · 2025-05-26 · in Ask HN: What are you working on? (May 2025) -
…that are safe for ZDD deploys. We use it in our rails app, catches quite a few potential footguns. https://github.com/ankane/strong_migrations
comment by efxhoy · 2024-09-21 · in Kamal Proxy – A minimal HTTP proxy for zero-downtime deployments -
…of automatic lock timeout retries in Strong Migrations. Lock Timeout Retries [experimental] https://github.com/ankane/strong_migrations
comment by andatki · 2024-08-12 · in Don't rely on IF NOT EXISTS for concurrent index creation in PostgreSQL -
In the Rails world, the gem strong_migrations can be used to detect these: https://github.com/ankane/strong_migrations The docs include a handy articulation of fixes.
comment by Empact · 2024-04-13 · in Careful with That Lock, Eugene -
Semi related https://github.com/ankane/strong_migrations
comment by nijave · 2022-05-14 · in Zero-downtime Django migrations -
Already existing gem works for both MySQL and PostgreSQL https://github.com/ankane/strong_migrations
comment by mt42or · 2022-02-21 · in Show HN: Zero-downtime PostgreSQL migrations for Ruby on Rails -
…I am extremely grateful that some people have created awesome libraries like strong migrations https://github.com/ankane/strong_migrations . Even if you are not using rails, you can bookmark its readme, it is an awesome cheat-sheet on how…
comment by it_citizen · 2022-02-12 · in When Postgres blocks: tips for dealing with locks -
There is already https://github.com/ankane/strong_migrations
comment by jaredsohn · 2022-01-21 · in Best practices as code using RuboCop -
…DSL instead of plain SQL. If anyone knows of a SQL-first reference, I'd love to hear about it. [1]: https://github.com/ankane/strong_migrations#checks
comment by hamandcheese · 2022-01-18 · in Why I Enjoy PostgreSQL – Infrastructure Engineer's Perspective -
…~6 years worth of real world testing at this point. [0]: https://github.com/flyerhzm/bullet [1]: https://github.com/ankane/strong_migrations [2]: https://github.com/ilyakatz/data-migrate
comment by nickjj · 2021-04-06 · in Elixir and Phoenix after two years -
…best practices like https://brakemanscanner.org/ https://github.com/djezzzl/database_consistency https://github.com/ankane/strong_migrations
comment by mtmail · 2020-09-07 · in Ask HN: Linters for excellent code? -
…was actually possible to change the default behavior of Postgres and fix the underlying issue. [1] https://github.com/ankane/strong_migrations#adding-a-column-...
comment by nathan_f77 · 2018-09-22 · in Postgres 11 – A First Look -
If you are using Rails, this is a nice guardrail: https://github.com/ankane/strong_migrations Even if you aren't on Rails or don't want to use the gem, it is still nice a checklist.
comment by pjungwir · 2018-06-18 · in A Performance Cheat Sheet for PostgreSQL -
It looks like that can affect `SELECT DISTINCT` queries. From https://github.com/ankane/strong_migrations#adding-a-json-co...
comment by benmanns · 2017-09-13 · in Better Database Migrations in Postgres -
I think they're referring to the last item in the list at https://github.com/ankane/strong_migrations#dangerous-operat... which was linked from the article.
comment by tclancy · 2017-09-13 · in Better Database Migrations in Postgres