I trying to upgrade rails 5 from rails 4.
I use octopus gem to make master-slave DB in rails 4.
I guess Octopus may not upgrade soon in Rails5 & Ruby 2.3.1.
So, I find other master-slave gems. However I don't find.
How can I make master-slave DB in rails 5?
Related
Did Rails Dev, migration rails app using ar-octopus to rails version 6/7.
As I see there are no updates regarding the rails v6 in ar-actopus gem, did any tried to upgrade on own.
Thanks in Advance.
Trying to migrate application from Rails-1.1.2 to 2.0.0 to current version.
Basic problem is can't find documentation for it.
I think in Rails 1.1.2 they don't have command to update the application like bundle update rails or rails app:update.
Directly changing ruby version gives boot error.
The first thing you need to do is to upgrade your Rails app to version 1.2.6, which is documented here.
After that you can upgrade to Rails 2.0, which is documented here.
The Rails releases page might be a useful page for you to check out, since they hold the info on how to upgrade. Like you said, there's hardly any information on how to upgrade the older Rails versions, so the official releases page is your best bet.
I'd upgrade to each release individually, so from 1.1.2 to 1.2.0, then to 1.2.6. Then go to 2.0, 2.1, etc. Update your Ruby seperate from it.
You can't directly migrate rails-1.1.x to rails-2.0 due to till Rails 2.3 doesn't have built-in bundler support because it came out before Bundler and no Gemfile in rails also that not a good way to directly update the ruby.
Note: before migrate to any version make sure you have more than 70% test coverage.
Steps help to migrate
Change the rails version (rails 1.1.x to rails 2.0) manually (means in vendor folder).
Run the test case and fix the failing syntax in your code (If any)
Then migrate rails 2.0 to rails 2.higher version (make sure higher than rails 2.3)
Again Run the test case and fix the failing syntax in your code (If any)
Then migrate rails 2.x to rails 3 pre version
Now you can add Gemfile put all gems into that upgrade your bundler gem.
Now you can migrate the ruby version as well.
Again Run the test case and fix the failing syntax in your code (If any)
Then migrate rails 3.0-pre to rails 3.higher version
Again Run the test case and fix the failing syntax in your code (If any)
Then migrate rails 3.x to rails 4 pre version
Now you can migrate the ruby version as well.
This is very long successful process for rails migration if your rails version older that 3.0.
There is one more way to achieve that. If you just want a Gemfile, rather than Bundler integration with Rails, you can create one easily enough.
gem install bundler
bundle init
Then follow below Guide to The Rails Command Line may help you, especially the section that covers rake gems:install.
https://guides.rubyonrails.org/v2.3.11/command_line.html#rake-is-ruby-make
I hope that help you.
Before looking at starting to upgrade an app from such an old version of Rails, I'd suggest reviewing how complicated it is and questioning if it would actually be quicker to build from scratch in the most recent version rather than go through so many upgrades.
I would like to upgrade one of my application from rails -2.3.11 to 4.0.0.
Before going to do anything, I just need plan for it and my application not that
much of big size but got some 6/7 plugins and 5/6 gems.
Existed : Ruby 1.8.7 + Rails 2.3.11
Expected : Ruby 2.0.0 + Rails 4.0.0
For this, I have plan as in two ways like below,
1).Multi-step process : First need to upgrade app from rails 2.* to 3.* and then
do upgrade from rails 3.* to 4.0.0
2).Create new application from rails - 4.0.0 and rebuild old application all
features as we have already css, layouts...
I hope both strategies will take same time.
Any how, I need some inputs from you all. So please share your thoughts/comments.
Thanks in advance.
check these casts ,it will help you migrating from rails 2 to rails 3 and then from rails 3 to rails 4
they are very helpfull
http://railscasts.com/episodes/225-upgrading-to-rails-3-part-1
http://railscasts.com/episodes/226-upgrading-to-rails-3-part-2
http://railscasts.com/episodes/227-upgrading-to-rails-3-part-3
and then upgrading to rails 4
http://railscasts.com/episodes/415-upgrading-to-rails-4
First, you could upgrade your Ruby gradually to 2.1.1. Then start to upgrade your Rails app from 2 to 3, finally upgrade to 4. If you have good test coverage, you could make sure that you did not break anything. Rewrite is also an option. I recommend you read this article A Guide for Upgrading Ruby on Rails.
I've created a rails 3.2 site/app but the hosting company I wanted to use only supports rails 2.3
Is there any easy option to downgrade. As a long sort , I tried changing my Gemfile on my dev copy but it complains about various dependencies.
Is there any easy way to downgrade or am I forced to create a new 2.3 app and recreate the files?
i am just starting with RoR and working through some tutorials, there is however a particular piece of code on github that i would like to look at, i have cloned it to my local and cd into the project but 'rails s' does not seem to start the server - any ideas what i need to do?
That's a Rails 2.3.2 app. rails s was introduced in Rails 3, so you'll have to use the older script/server start command.
Also, you're going to need rails 2.3.2, which you can install with gem install -v=2.3.2 rails. There's also the possibility that you're missing some required gems, which you'll find out about by running the app and watching for load errors.
Also, make sure you're running Ruby 1.8.7, not Ruby 1.9.2. Rails 2.3.2 does not work with Ruby 1.9.2