adjust auto migration

This commit is contained in:
Pete Matsyburka committed 2024-10-27 14:26:52 +02:00
1 parent 1b636c5878
commit 8773b30b10
1 file changed
+1 -1
+1 -1
View File
@@ -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