Skip to content

Commit

Permalink
Do not reload rake tasks when under add-on environment
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Waite <[email protected]>
  • Loading branch information
vinistock and andyw8 committed Oct 30, 2024
1 parent 7e68f5c commit ec03515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tapioca/dsl/pipeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ def report_error(error)
def abort_if_pending_migrations!
return unless defined?(::Rake)

Rails.application.load_tasks
Rails.application.load_tasks unless @lsp_addon

if Rake::Task.task_defined?("db:abort_if_pending_migrations")
Rake::Task["db:abort_if_pending_migrations"].invoke
end
Expand Down

0 comments on commit ec03515

Please sign in to comment.