Answers for "run a rake task rails"

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

Browse Popular Code Answers by Language