I'm upgrading Ruby's version from 2.3.8 to 2.4.4 on Rails 5.2.3.
When I start the application I get this error:
app/models/warning.rb:1:in `<main>': Warning is not a class (TypeError)
when called on console:
Warning.class => Module
But in fact it is one of my models called Warning
.
I saw in released notes an introduction to a new module on ruby 2.4 called Warning
.
but how can I avoid this conflict without renaming my model with migrations?