Add gem to watch after data migrations

> This gem prevents Rails from auto-loading app code while it's running
migrations, preventing the common mistake of referencing ActiveRecord
models from migration code.

This will make us stop relying on @mkllnk to have robust data migrations
that don't cause trouble in the future.
This commit is contained in:
Pau Perez
2021-03-03 08:22:32 +01:00
parent b3610e035d
commit 63f82bd142
3 changed files with 10 additions and 0 deletions

View File

@@ -135,6 +135,8 @@ gem 'select2-rails', '~> 3.4.7'
gem 'ofn-qz', github: 'openfoodfoundation/ofn-qz', branch: 'ofn-rails-4'
gem 'good_migrations'
group :production, :staging do
gem 'ddtrace'
gem 'unicorn-worker-killer'

View File

@@ -388,6 +388,9 @@ GEM
globalid (0.4.2)
activesupport (>= 4.2.0)
gmaps4rails (2.1.2)
good_migrations (0.0.2)
activerecord (>= 3.1)
railties (>= 3.1)
haml (5.2.1)
temple (>= 0.8.0)
tilt
@@ -771,6 +774,7 @@ DEPENDENCIES
fuubar (~> 2.5.1)
geocoder
gmaps4rails
good_migrations
haml
highline (= 2.0.3)
i18n

View File

@@ -225,6 +225,9 @@ GEM
globalid (0.4.2)
activesupport (>= 4.2.0)
gmaps4rails (2.1.2)
good_migrations (0.0.2)
activerecord (>= 3.1)
railties (>= 3.1)
haml (5.2.0)
temple (>= 0.8.0)
tilt
@@ -596,6 +599,7 @@ DEPENDENCIES
fuubar (~> 2.5.1)
geocoder
gmaps4rails
good_migrations
haml
highline (= 2.0.3)
i18n