strong_migrations
data-migrate
Our great sponsors
strong_migrations | data-migrate | |
---|---|---|
17 | 14 | |
3,845 | 1,355 | |
- | - | |
8.1 | 7.7 | |
24 days ago | 24 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.
strong_migrations
-
Careful with That Lock, Eugene
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.
-
Must-have gems for mature Rails
gem "strong_migrations" - https://github.com/ankane/strong_migrations | Helps devs write non-blocking migrations, a must-have.
-
Migration Best Practice
Frameworks will have a preferred solution. We use Rails with the strong_migrations gem which is great: https://github.com/ankane/strong_migrations
-
How does Rails handle out of order migrations (when working on different local branches)
There’s no real way to test, but you can use gems like https://github.com/ankane/strong_migrations and not allow to merge branches unless they are up-to-date with main.
-
[AskJS] Is there any alternative to the strong migrations gem?
The strong migrations gem in Rails alerts when you're trying to make a migration that may be dangerous. Does anyone know an alternative for Javascript? Or maybe for raw SQL.
- Adding first and last name to existing app running on Heroku
- Enforcing Zero Downtime Django Migrations
-
When Postgres blocks: tips for dealing with locks
Half of the problems in this article are migration related.
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, bookmark its readme, it is an awesome cheat-sheet when writing a migration.
- Best practices as code using RuboCop
-
Why I Enjoy PostgreSQL – Infrastructure Engineer's Perspective
I would suggest taking a look at strong migrations[1]. It's a rails project, but the readme does a great job explaining what it checks for and what safe alternative to use instead. I still link to their explanations in PRs for non-rails projects.
data-migrate
-
Undocumented Gem Incompatibilities with Rails 7.1
For example, take the popular data-migrate gem. Its gemspec requires activerecord >= 6.1 with no upper bound. Looking at the changelog, though, you'll see that support for Rails 7.1 wasn't added until version 9.2.0. Older versions will hit this exception when someone tries to run migrations under the latest Rails, even though bundler installs the package with no warning.
-
Data Migration Strategies in Ruby on Rails: The Right Way to Manage Missing Data
The third option is to use the data-migrate gem.
-
Update Millions of Records in Rails
I was thinking of this one, I believe, but it's pretty old:
https://github.com/OffgridElectric/rails-data-migrations
This is maybe a more modern one I found:
- How does Rails handle out of order migrations (when working on different local branches)
-
Safe data migrations in Rails
https://github.com/ilyakatz/data-migrate exists for exactly this purpose with a similar approach as active record migrations.
- Versionamento de banco de dados no Git
-
Data migrations with Rails
Data migration gem There are a couple of gems that helps organize your data migrations in the same way as schema migrations, one of the most known data-migrate. You can simply generate a new migration:
-
Data Migrations in NestJS
In the past, we've used data-migrate for this, but this comes with pitfalls. What happens if the deploy fails? We can often end up with strange errors and changes in state, so it's nicer to have a bit more control.
-
Squash Migrations in Legacy Apps
I guess you were talking about this: https://github.com/ilyakatz/data-migrate ?
- Migrações de dados em Ruby on Rails
What are some alternatives?
safe-pg-migrations - Make your PostgreSQL migrations safe
departure - Percona's pt-online-schema-change runner for ActiveRecord migrations.
phony_rails - This Gem adds useful methods to your Rails app to validate, display and save phone numbers. It uses the super awesome Phony gem (https://github.com/floere/phony).
Discourse - A platform for community discussion. Free, open, simple.
money-rails - Integration of RubyMoney - Money with Rails
Ruby on Rails - Ruby on Rails
lockbox - Modern encryption for Ruby and Rails
seed_migration - Seed Migration
Pagy - 🏆 The Best Pagination Ruby Gem 🥇
indifferent_access - [ALPHA] - Elixir Plug/Utility doing questionable things with maps/params
ghost_adapter - Run ActiveRecord migrations through gh-ost
bullet - help to kill N+1 queries and unused eager loading