Skip to content

Commit

Permalink
Fix: RuntimeError - Don't know how to build task 'db:migrate' (#844)
Browse files Browse the repository at this point in the history
ActiveRecord's migrate tasks are required since v2.7.5 (#588).
  • Loading branch information
onk committed Jan 3, 2021
1 parent 9099c62 commit 516ed58
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 516ed58

Please sign in to comment.