From 8773b30b1041c49f55f1176770fc4b5d5e3d741c Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sun, 27 Oct 2024 14:25:16 +0200 Subject: [PATCH] adjust auto migration --- config/initializers/migrate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/migrate.rb b/config/initializers/migrate.rb index 4f3093495..1e0704edd 100644 --- a/config/initializers/migrate.rb +++ b/config/initializers/migrate.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true Rails.configuration.to_prepare do - ActiveRecord::Tasks::DatabaseTasks.migrate if ENV['RAILS_ENV'] == 'production' + ActiveRecord::Tasks::DatabaseTasks.migrate if ENV['RAILS_ENV'] == 'production' && ENV['RUN_MIGRATIONS'] != 'false' end