Answers for "how to write rake task in rails create"

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