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