Skip to content

Commit

Permalink
Fixes #36774 - count db:abort_if_pending_migrations as setup task
Browse files Browse the repository at this point in the history
this avoids loading settings and friends just to check if a migration is
required
  • Loading branch information
evgeni committed Sep 25, 2023
1 parent 57a8f55 commit f1720c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foreman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def self.in_rake?(*rake_tasks)
end

def self.in_setup_db_rake?
in_rake?('db:create', 'db:migrate', 'db:drop')
in_rake?('db:create', 'db:migrate', 'db:drop', 'db:abort_if_pending_migrations')
end

def self.pending_migrations?
Expand Down

0 comments on commit f1720c1

Please sign in to comment.