Migrate rails application using ar-octopus gem to Rails v6.x.x - ruby-on-rails

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.

Related

Replication(master/slave) in Rails5

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?

How to work with multiple ruby on rails applications on heroku

I want to run two rails apps which have rails version 3.1.10, 4.0.2 & ruby 1.9.2, 2.1.0. Is it possible to do this using Heroku?
As long as you specify the ruby and rails version in your Gemfiles, heroku will take care of it for you. I have an app running on ruby 1.9.2 and rails 3.2.13 and another on ruby 2.0.0 and rails 4.0.3.
Yes, It is possible just make sure that the ruby versions with rails 4. It requires Ruby version 2.0.0+.
Just check the
https://devcenter.heroku.com/articles/getting-started-with-rails4
https://devcenter.heroku.com/articles/getting-started-with-rails3
for the pre requisites.

How to update rails 2.3.10 to 3.x

Currently I am using rails 2.3.10, I want to update my rails version to version 3.
What's the command to update rails?
So, the basic command would be:
gem update rails
But, upgrading from 2.3.x to 3.x isn't a trivial task... you should really read up a little more on it before you do so.
Ryan Bates shows you how to do it here. The Rails version you are using are completely different so you will have to upgrade Rails and then use this plugin to help upgrade your application unless you already know everything.

installing spree with rails 2.3.11

I'm following the spree 'getting started' guide from here: http://spreecommerce.com/documentation/getting_started.html
I'm stuck at:
rails g spree:site
I'm using Rails 2.3.11 and not Rails 3. So I tried:
dan#bt:~/mystore$ script/generate spree:site
Couldn't find 'spree:site' generator
I couldn't find the guide for a Rails 2.3.x install..
Spree gem 0.11-stable works against Rails 2.3.8. If you want to fix it to work against 2.3.11 you'll have to go through the code-base and manually update references for Rails 2.3.8 to 2.3.11.
Legacy documentation to Spree 0.11 is here:
http://guides.spreecommerce.com/legacy/0-11-x/index.html
There is a thread on the Spree Google Groups that discusses this:
http://groups.google.com/group/spree-user/browse_thread/thread/d0a22b82b2fb43ee
I highly recommend upgraded to the latest version of Spree (currently 1.0.0) as Spree-Conference was just announcing it. It has a rich feature-set, great bug fixing, and works against Rails 3.1.1.

How do I upgrade from Rails 2.3.5 to Rails 2.3.8?

I've got a Rails 2.3.5 app that I want to upgrade to Rails 3. In the Rails 3 upgrade Railscast, they suggest upgrading to 2.3.8 before going to 3. I've tried Googling but the information I find is all about upgrading to Rails 3. I found this question, which seems to suggest doing gem update rails and rake rails:update, but wouldn't these commands upgrade to Rails 3, as it's the latest version? How do I upgrade to Rails 2.3.8? Thanks for reading.
There's not much difference between 2.3.5 and 2.3.8 (also, 2.3.10 is the latest version on the 2.3 branch - you should upgrade to that).
Install Rails 2.3.10:
gem install rails -v=2.3.10
Then edit config/environment.rb and change your Rails version to 2.3.10 near the top of the file. Start up webrick, deal with any deprecation warnings it throws at you while you click through your app, and you're pretty much done.
Citation from the Rails blog:
"We’ve released Ruby on Rails 2.3.9
(gem and git tag) to extend the 2.3.8
bridge a few steps closer to Rails 3
and Ruby 1.9. If your app runs on
Rails 2.3.9 without deprecation
warnings, you’re looking good for an
upgrade to Rails 3."
Edit:
Jeremy is on the money. Don't install 2.3.9, it has a serious security flaw. I've updated my answer to 2.3.10.
You can run rake rails:update - this updates the stock javascripts and config files. However, they probably won't need to be changed from 2.3.5 to 2.3.10.
$ gem install rails -v 2.3.8
Then change the RAILS_VERSION in your environment.rb file and run
$ rake rails:update

Resources