Skip to content

Commit

Permalink
adjust auto migration
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Oct 27, 2024
1 parent 1b636c5 commit 8773b30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/migrate.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8773b30

Please sign in to comment.