One of the notable changes in Rails 5 is that models now inherit from ApplicationRecord instead of ActiveRecord::Base. So this gem helps you avoid the manual labour of changing each and every model in your rails project. Instead just use the command line tool available through this gem.
It also adds an application_record.rb file with content:
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
Add this line to your application's Gemfile:
gem 'ar_to_ar'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ar_to_ar
Run this command on the terminal at the root of your Rails project.
ar_to_ar
Bug reports and pull requests are welcome on GitHub at https://github.com/rishijain/ar_to_ar.