ghost_adapter
safe-pg-migrations
ghost_adapter | safe-pg-migrations | |
---|---|---|
2 | 6 | |
18 | 478 | |
- | 1.3% | |
1.5 | 8.5 | |
3 days ago | 8 days ago | |
Ruby | Ruby | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ghost_adapter
-
Changing Tires at 100mph: A Guide to Zero Downtime Migrations
At least for Rails there are several gems available (ie https://github.com/WeTransfer/ghost_adapter or https://github.com/departurerb/departure) that seamlessly hook into the existing migration system and will run all eligible migrations through gh-ost or pt-osc as needed. You're right that it's not free but it isn't all that far off either.
That said, online schema migrations are a specialized tool designed for very big tables that take hours to run an ALTER TABLE on. If all your tables are small enough that alterations take less than a second or so, don't bother and just block the table for a bit. It's fine.
-
Database... or Goose?
https://github.com/WeTransfer/ghost_adapter integrates gh-ost with activerecord and the departure gem does the same but for pt-osc.
safe-pg-migrations
- Show HN: safe-pg-migrations, ActiveRecord migrations for Postgres made safe
- Gérer ses migrations sans downtime
- Show HN: Zero-downtime PostgreSQL migrations for Ruby on Rails
-
Database... or Goose?
ps. the gem being showcased here is https://github.com/doctolib/safe-pg-migrations
At Doctolib, we developed safe-pg-migrations, a tool which automatically makes migrations safe. In 2018, we open-sourced this library. From an internal solution developed by our team only, it is now used on other projects, and even received contribution from external authors.
-
Release a new gem version
At Doctolib, we proudly maintain and develop the gem safe-pg-migrations, which makes migrations safer. Once in a while, after each relevant updates, we release a new version.
What are some alternatives?
strong_migrations - Catch unsafe migrations in development
wt_activerecord_index_spy - A gem to spy queries running with Active Record and report missing indexes
migration_signature - Generate signatures for Rails migration files when they are run and check them in CI.
Large Hadron Migrator - Online MySQL schema migrations
pg-osc - Easy CLI tool for making zero downtime schema changes and backfills in PostgreSQL
Ruby on Rails - Ruby on Rails
online_migrations - Catch unsafe PostgreSQL migrations in development and run them easier in production (code helpers for table/column renaming, changing column type, adding columns with default, background migrations, etc).
database-lab-engine - DBLab enables 🖖 database branching and ⚡️ thin cloning for any Postgres database and empowers DB testing in CI/CD. This optimizes database-related costs while improving time-to-market and software quality. Follow to stay updated.
reshape - An easy-to-use, zero-downtime schema migration tool for Postgres
flipper - 🐬 Beautiful, performant feature flags for Ruby.