In my environment each time I run a rake task (so far only related to active migration) I get three deprecation warnings and then the process seems to kill.
➜ job-board-app git:(styles-for-boards-page) ✗ rake db:drop
/Users/jackburum/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated
/Users/jackburum/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated
/Users/jackburum/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.1/lib/active_support/core_ext/numeric/conversions.rb:138: warning: constant ::Fixnum is deprecated
Same thing happens for reset, migrate, etc. Looking for ideas on what I may need to do in order to get the tasks to run successfully
First of all, in Rails 5, you should use rails task_name
instead of rake task_name
.
So, use this:
rails db:drop
Now, about the warning, you are getting the warning because you are using ruby 2.4.0. Checkout the ruby 2.4.0 release notes. Those warnings are from the activesupport gem and will go away in Rails 5.0.2
For now, you can just ignore the warning. Upgrade to Rails 5.0.2 as soon as it's released.