-
Migrations - I use this gem https://github.com/ka8725/migration_data
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
I may do it from the console or a task if I wanted to modify a large number of records, e.g. something in my Users table. I think you need a sense of how long the update will take - I'm not sure if there's any issue with migrations timing out or such like. If I modify my Users schema it takes 5 minutes or so as it has to make a copy of the table and swap it in and that works fine - https://github.com/soundcloud/lhm
-
We use this technique. https://github.com/Shopify/maintenance_tasks. It is similar to a job (it uses a job under the hood) that can be be paused, interrupted by a deploy, and even aborted.
Related posts
-
Migration Magic ✨, Handling Not-Null Constraints in Production with Ruby on Rails
-
Gemfile of dreams: the libraries we use to build Rails apps
-
Zero-downtime schema migrations for Ruby on Rails
-
Zero-downtime PostgreSQL migrations for Ruby on Rails
-
online_migrations: a new release with more safe/unsafe operations and ability to reset counter caches in background