Ruby on Rails
Wednesday, July 26, 2017
The problem isn't related to the compatibility.
Em terça-feira, 25 de julho de 2017 20:21:35 UTC+1, João Bordalo escreveu:
-- just replace to:
Rails.configuration.respond_to?(:scheduler)
on the line that I pointed
Em terça-feira, 25 de julho de 2017 20:21:35 UTC+1, João Bordalo escreveu:
Hi there,I'm upgrading an app from rails 4.2.7 to 5.0.4.I have updated the binary files through this command $rails app:update, and so far so good.However, when i run this command $rails db:migrate, I get the following error:rails aborted!NoMethodError: undefined method `scheduler'and the code it points is to this block: (the red is what is causing the error.if !defined?(Rails::Console) && \File.basename($0) != 'rake' && \Rails.configuration.schedulerscheduler_pid_file = File.join(Rails.root, "tmp", "scheduler.pid").to_sScheduler::start_unless_running scheduler_pid_file endI'm using gem 'rufus-scheduler', '~> 3.4.2'And I followed this guide to upgrade: https://hashrocket.com/blog/posts/how-to-upgrade- to-rails-5#3-update-rails- binaries-and-configurations Do you have any idea how to solve this?Thank you for your time,João Bordalo
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2b07e845-229a-4173-8f3a-3b23b29897e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment