Skip to content

Commit

Permalink
Maintenance: Enable Rails to stop initialization if migrations are pe…
Browse files Browse the repository at this point in the history
…nding
  • Loading branch information
mgruner committed Dec 15, 2023
1 parent 8067268 commit 821f10a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/initializers/active_record_pending_migrations.rb
@@ -0,0 +1,5 @@
# Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/

if %w[1 true].include? ENV['RAILS_CHECK_PENDING_MIGRATIONS']
ActiveRecord::Migration.check_pending!
end

0 comments on commit 821f10a

Please sign in to comment.