title: Problem in updating rails from 4.2.0 to 5.0.2
body: <pre class="lang-rb prettyprint-override"><code>Bundler could not find compatible versions for gem "actionpack":
    In Gemfile:
      active_model_serializers (~&gt; 0.10.0.rc5) was resolved to 0.10.9, which depends on
        actionpack (&gt;= 4.1, &lt; 6)
  
      axlsx_rails (~&gt; 0.5.0) was resolved to 0.5.2, which depends on
        actionpack (&gt;= 3.1)
  
      haml-rails was resolved to 1.0.0, which depends on
        actionpack (&gt;= 4.0.1)
  
      rails (= 5.0.2) was resolved to 5.0.2, which depends on
        actionpack (= 5.0.2)
  
      responders (~&gt; 2.0) was resolved to 2.4.1, which depends on
        actionpack (&gt;= 4.2.0, &lt; 6.0)
  
      rspec-rails (~&gt; 3.0) was resolved to 3.8.2, which depends on
        actionpack (&gt;= 3.0)
  
  Bundler could not find compatible versions for gem "activerecord":
    In Gemfile:
      activerecord-postgis-adapter (~&gt; 3.1.4) was resolved to 3.1.5, which depends on
        activerecord (~&gt; 4.2)
  
      rails (= 5.0.2) was resolved to 5.0.2, which depends on
        activerecord (= 5.0.2)
  
  Bundler could not find compatible versions for gem "rails":
    In Gemfile:
      rails (= 5.0.2)
  
      leaflet-rails was resolved to 1.5.1, which depends on
        rails (&gt;= 4.2.0)
  
      react-rails (~&gt; 1.6.0) was resolved to 1.6.2, which depends on
        rails (&gt;= 3.2)
  
  Bundler could not find compatible versions for gem "resque":
    In Gemfile:
      resque (~&gt; 1.26.0)
  
      resque-scheduler (~&gt; 4.3.0) was resolved to 4.3.1, which depends on
        resque (~&gt; 1.26)
  
  </code></pre>
  
  <p>I changed the file "GemFile" to 5.0.2 and gave an error. The error does not say that any gem does not support 5.0.2. Help me please.
  Reason for update due to:</p>
  
  <pre class="lang-rb prettyprint-override"><code>dayanov-sa@dayanov-sa:~/workspace/main/sokol_dev$ rails c
  /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/activesupport-4.2.0/lib/active_support/core_ext/object/duplicable.rb:85: warning: BigDecimal.new is deprecated; use BigDecimal() method instead.
  /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
  /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
  Traceback (most recent call last):
          7948: from bin/rails:4:in `&lt;main&gt;'
          7947: from bin/rails:4:in `require'
          7946: from /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/railties-4.2.0/lib/rails/commands.rb:17:in `&lt;top (required)&gt;'
          7945: from /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
          7944: from /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:67:in `console'
          7943: from /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:142:in `require_application_and_environment!'
          7942: from /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/railties-4.2.0/lib/rails/application.rb:328:in `require_environment!'
          7941: from /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
           ... 7936 levels...
             4: from /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in &lt;class:Numeric&gt;'
             3: from /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in &lt;class:Numeric&gt;'
             2: from /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in &lt;class:Numeric&gt;'
             1: from /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in &lt;class:Numeric&gt;'
  /home/dayanov-sa/.rvm/gems/ruby-2.6.3/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in &lt;class:Numeric&gt;': stack level too deep (SystemStackError)
  </code></pre>
  
  <p>I tried many methods to solve this problem, but nothing helped. Has anyone encountered a similar situation and knows some way to solve this problem.</p>
  
  <p>Rails 4.2.0</p>
  
  <p>ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]</p>