Skip to content

Instantly share code, notes, and snippets.

@KoRMaK
Created November 21, 2022 05:13
Show Gist options
  • Save KoRMaK/e04f13411a8b6c2efd8abc7e15db5837 to your computer and use it in GitHub Desktop.
Save KoRMaK/e04f13411a8b6c2efd8abc7e15db5837 to your computer and use it in GitHub Desktop.
tasks_ = task.application.instance_variable_get(:@tasks)
tasks_['db:rails_migrate'] = tasks_['db:migrate']
tasks_.delete('db:migrate')
task.application.instance_variable_set(:@tasks, tasks_)
namespace :db do
desc 'This task sends out notifcations, needs to run at least hourly to work.'
task migrate: :environment do
byebug
task('db:rails_migrate').invoke
puts 'stuff'
byebug
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment