Answers for "rails run rake task from another rake task"

1

run rake task in rails console

require 'rake'
Rails.application.load_tasks # <-- MISSING LINE
Rake::Task['my_task'].invoke
Posted by: Guest on November-16-2021
0

rails run rake task

rails raketaskname:task
Posted by: Guest on October-19-2021

Browse Popular Code Answers by Language