Skip to content

Commit

Permalink
Fix: RuntimeError: Don't know how to build task 'db:migrate'
Browse files Browse the repository at this point in the history
ActiveRecord's migrate tasks are required since v2.7.5 (ctran#588).
  • Loading branch information
onk committed Dec 3, 2020
1 parent 9099c62 commit 1508f2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tasks/annotate_models_migrate.rake
Expand Up @@ -16,6 +16,8 @@ if defined?(Rails::Application) && Rails.version.split('.').first.to_i >= 6
end

migration_tasks.each do |task|
next unless Rake::Task.task_defined?(task)

Rake::Task[task].enhance do
Rake::Task[Rake.application.top_level_tasks.last].enhance do
annotation_options_task = if Rake::Task.task_defined?('app:set_annotation_options')
Expand Down

0 comments on commit 1508f2b

Please sign in to comment.