diff --git a/Gemfile b/Gemfile index 6b960ab2..029517c4 100644 --- a/Gemfile +++ b/Gemfile @@ -6,6 +6,7 @@ ruby File.read('.ruby-version') # Use main development branch of Rails gem 'rails', '=7.1.3.2' +gem 'data_migrate' # Unclear if we need to require it explicitly # gem 'activesupport', '=7.1.3.2' diff --git a/Gemfile.lock b/Gemfile.lock index b2f35f80..e7aea830 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -148,6 +148,9 @@ GEM cssbundling-rails (1.4.0) railties (>= 6.0.0) dalli (3.2.8) + data_migrate (9.4.0) + activerecord (>= 6.1) + railties (>= 6.1) date (3.3.4) debug (1.9.2) irb (~> 1.10) @@ -493,6 +496,7 @@ DEPENDENCIES country_select cssbundling-rails dalli + data_migrate debug devise ed25519 diff --git a/config/deploy.rb b/config/deploy.rb index 7f64278e..b577bede 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -50,7 +50,7 @@ before :starting, 'deploy:setup' namespace(:assets) do - before :precompile, 'deploy:migrate' + before :precompile, 'deploy:migrate:with_data' before :precompile, 'node:install' before :precompile, 'node:yarn:install'