Questions tagged [rails-upgrade]

This is mainly deals with issues when upgrading the rails version.

40 questions
3
votes
0 answers

SystemStackError: stack level too deep while upgrading from rails 6.0 to 6.1.4

While I am upgrading my rails application with ruby 2.7.4 and Moving form rails 6.0 to 6.1.4 I am facing issue while running command bin/rails app:update I am also adding few lines of errors force …
3
votes
1 answer

How can I install using gem when I keep getting this zlib error?

I recently installed rails 4.1.8 from the repos in ubuntu. I installed ruby 2.0.0. I want to update to rails 4.2.0. I rvm'd to ruby 2.0.0. I try to update rails using gem install rails -v 4.2.0 but receive this error ERROR: Loading command:…
MattF
  • 95
  • 1
  • 7
2
votes
1 answer

Upgrading to from rails 5 to 6 and zeitwerk

We have a rails 5.2.8.1 app and a trying to upgrade to rails 6.1. We have managed to make the application run locally with only minor problems. However, pushing to our ci (circleCI) we get errors in precompiling the assets. The error is that the…
2
votes
1 answer

ELB Target groups health checks are failing with 403 after upgrading from Rails 5 to rails 6

ELB target group's health check is failing with status code 403 forbidden after upgraded rails to rails 6. However health check is working in development but not on AWS cloud. Health check is succeed with rails 5 but not with rails 6. Any help would…
2
votes
1 answer

upgrading rails, confusing output

So I'm moving from 4.2.11 -> 5.2.3, and when I try to bundle install, I get a ton of sections of output that look similar to this: Bundler could not find compatible versions for gem "rest-client": In Gemfile: rest-client (~> 1.6.9) …
jaydel
  • 14,389
  • 14
  • 62
  • 98
2
votes
0 answers

Upgrading rails4 to 5.0.0 and getting dependency error for actionpack, activemodel

I am upgrading my rails app from rails 4 to rails 5.0.0 I have fixed most dependency issues except the following: Bundler could not find compatible versions for gem "actionpack": In Gemfile: actionpack rails (= 5.0.0) was resolved to 5.0.0,…
2
votes
1 answer

Migrating from Rails 4 to Rails 5: using ActionDispatch::Request.parameter_parsers and config.middleware

I am currently migrating an app from Rails 4 to Rails 5. I've encountered the following issue when trying to issue commands such as bundle exec rspec…
DaniG2k
  • 4,772
  • 36
  • 77
1
vote
0 answers

What is causing the 'Alias parsing was not enabled' error in Psych while upgrading Rails to 6.0.6.1 and how can it be resolved?

Alias parsing was not enabled getting psych error when upgrading rails from 5.2 to 6.0.6.1 .rvm/gems/ruby-2.7.8@reports2/gems/psych-5.1.0/lib/psych/visitors/to_ruby.rb:432:in `visit_Psych_Nodes_Alias': Cannot load database configuration: Alias…
1
vote
2 answers

uninitialized constant ActiveRecord::Railtie::ActiveRecord

While upgrading from Ruby 2.6.6 to Ruby 3.1.3 and from Rails 5.2.6 to Rails 6.0.6, I made sure that I followed and incorporated all the changes between these 2 rails versions. I am not sure why I am getting the following…
genonymous
  • 1,598
  • 3
  • 18
  • 27
1
vote
0 answers

Rails 6.1 gives extra precision value on upgrade

I was upgrading the Ruby on Rails application from 6.0 to 6.1. When checking the start_date which is having having extra precision value when it comes to 6.1 2.7.0 :001 > User.last.created_at User Load (11.4ms) SELECT "users".* FROM "users" ORDER…
Anoob K Bava
  • 598
  • 7
  • 19
1
vote
2 answers

How can I disable ActiveSupport::Notifications on Rails 7?

I'm trying to upgrade my API from Rails 6 to Rails 7, and got this error after solving dependences and running my app: Error: ActiveSupport::Notifications::InstrumentationSubscriberError (Exception(s) occurred within instrumentation subscribers:…
1
vote
1 answer

After upgrading Rails from 6.1.1 to 7.0.3 my Devise mailers can't be initialized

I started upgrading my application from Rails 6.1.1 to 7.0.3. While doing this I also had to upgrade Devise from 4.7.3 to 4.8.1. With old setup everything worked fine. Now after upgrading I can't start none of the following: rails server rails…
Andres
  • 2,099
  • 3
  • 22
  • 39
1
vote
0 answers

rake aborted! NoMethodError: undefined method `alias_method_chain' for ActiveRecord::SchemaDumper:Class

when i added the foreigner gem in gemfile this occur and i am upgrading rails 4.1 to 6.1: any solution anyone have fast post otherwise you can mail to…
1
vote
0 answers

Upgrading to Rails 6.1.4: `to_app': missing run or map statement (RuntimeError)

I am upgrading my existing application of rails 5.2.0 to 6.1.4 I followed the official upgrade guide as well as, this guide. My rails version is 6.1.4.1 & my ruby version is 2.5.3 which satisfies the condition of running the app. Anybody could give…
Gilg Him
  • 842
  • 10
  • 19
1
vote
1 answer

Factory_girl deprecation for rails 5

I'm currently upgrading my rails application from rails 4 to rails 5. Is it necessary to change from Factory_girl to Factory_bot? What will happen if I proceed with a deprecation warning? further, I might be upgrading that application to rails 6, so…
1
2 3