zero_downtime_migrations
actual_db_schema
zero_downtime_migrations | actual_db_schema | |
---|---|---|
1 | 2 | |
562 | 197 | |
- | 7.1% | |
0.0 | 7.1 | |
8 months ago | 2 days ago | |
Ruby | Ruby | |
MIT License | 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.
zero_downtime_migrations
-
Rails: Postgres Partial Indexing
I've historically used https://github.com/LendingHome/zero_downtime_migrations which is based on strong_migrations but at the end of the day anything is better than nothing.
actual_db_schema
-
How does Rails handle out of order migrations (when working on different local branches)
https://github.com/widefix/actual_db_schema gem automatically runs migration/rollback on your current branch. You need to write reversible migrations always though.
-
Keep Rails DB schema consistent while switching between branches with no additional actions
Switching between branches you might end up with inconsistent DB in the current branch due to migrations run inside other branches. I've just released a gem that solves that issue for good: https://github.com/widefix/actual_db_schema
What are some alternatives?
counter_culture - Turbo-charged counter caches for your Rails app.
strong_migrations - Catch unsafe migrations in development
PaperTrail - Track changes to your rails models
Lol DBA - lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.
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).
Ruby on Rails - Ruby on Rails
SQL Server - SQL Server Adapter For Rails
Scenic - Versioned database views for Rails
SecondBase - Seamless second database integration for Rails.