Project

ar_to_ar

0.01
No commit activity in last 3 years
No release in over 3 years
When migrating to Rails 5, all models needs to be changed and application_record.rb needs to be added
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.10
~> 5.8
~> 10.0
 Project Readme

Build Status Gem Version

ArToAr

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

Installation

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

Usage

Run this command on the terminal at the root of your Rails project.

ar_to_ar

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rishijain/ar_to_ar.