Skip to content

Commit

Permalink
Fix: RuntimeError - Don't know how to build task 'db:migrate' (ctran#844
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 authored and ocarta-l committed Jun 18, 2021
1 parent 1dc8890 commit bc7ac37
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 bc7ac37

Please sign in to comment.