- Database Migrations🔍
- Concurrent database migration error🔍
- Avoiding downtime in migrations🔍
- Data migrations with Rails🔍
- Automatically migrate database when pushing to Heroku🔍
- Zero downtime Rails migrations with the PlanetScale Rails gem🔍
- Travis isn't able to resolve assosciation in Rails🔍
- Pending migration error🔍
How to deal with failed migrations during deployment in Rails?
Database Migrations - Vadim Kravcenko
The first step happens long before the database migration happens. Marking/highlighting the code that uses the “field-to-be-removed.” After all ...
Concurrent database migration error - Qovery Community Forum
A good practice is to use a migration lock (probably provided by Rails or via an additional lib). Then only one instance will make the migration while the ...
Avoiding downtime in migrations - GitLab Documentation
The next step is to ignore the column in the application code, and make sure it is not used. This step is necessary because Rails caches the columns and re-uses ...
Data migrations with Rails - JetThoughts
Has versioning the same way as schema migrations; · Can be easily run during deployment; · Testable: via either extracting logic into dedicated ...
Automatically migrate database when pushing to Heroku - - Ruby Yagi
I used to freak out when seeing this, but most of the time it is caused by me forgetting to run rake db:migrate after deploying a feature which ...
Zero downtime Rails migrations with the PlanetScale Rails gem
Removing a column is one case where we do want to deploy some code prior to running the migration. ... This ensures your application is not using ...
Travis isn't able to resolve assosciation in Rails - Deployment
You need is to run the migration so that request_id column is added to the borrow_requests table in your database against which the Travis runs ...
Pending migration error - Build Environment - CircleCI Discuss
Hi, I'm getting an error on CircleCI only (i.e. it's not happening locally or on our Heroku servers).
Good Database Migration Practices for Your Ruby on Rails App ...
Looking at the above example, the solution is to run a database migration before an application starts. The deployment tooling should take care ...
Strong Migrations Gem for Ruby on Rails 7 - YouTube
This video covers Strong Migrations, a gem that lets your production Ruby on Rails 7 app rest easily knowing its migrations are probably ...
Three Useful Data Migration Patterns for Rails - OmbuLabs
I believe that the best way to solve this problem is to use data_migrate . You will write less code, keep all data migrations in a db/data ...
Cleaning up old Ruby on Rails DB migrations - Code With Rails
When you run bin/rails db:migrate , Rails does not re-run all migrations. It determines, based on the timestamp of the migration file and ...
Asynchronous Active Record migrations - Kir Shatrov
Every time when you deploy code with schema changes, you have to apply new Active Record migrations by running bin/rails db:migrate .
Zero Downtime Rails Deployments with Kubernetes - Thoughtbot
If you run migrations while old versions of your application are running, this means your migrations must be backwards compatible for at least ...
Managing Rails schema and data migrations without losing your mind
Getting your migrations into a broken state is a huge mess – everyone on your team might end up with a slightly different local database or your ...
Rails DB Migration Failed Due To Duplicate Column
I had recently added one column in postgres database, After the db migration, I wanted to update same migration file instead of creating new ...
How to Remove Old Database Migrations in Ruby on Rails - Naturaily
Now, if we run db:migrate we won't see any results or errors because we've have already migrated the database. However, if we have to setup a new environment we ...
Keeping your database migrations strong with strong_migrations gem
Strong Migrations is a Ruby gem designed to help Rails developers perform safe and efficient database migrations, especially in production environments.
The Complete Guide to Rails Migration - Tagline Infotech
When we cannot do migrations on a new database (rails db migrate), tidying up previous migrations is a good idea. One possible cause of ...
Database Migration / Deployment Questions
This is all well and good for local development, but this becomes problematic when you deploy new code attached to a database schema created by ...