fastruby / fastruby/rails_upgrader

Automate migration of ActiveRecord::Base to ApplicationRecord

Open
#20 0 comments 0 reactions 1 assignee Assigned to @bronzdoc View on GitHub
feature request
Dominant language
Ruby
Stars
41
Forks
21
PR merge metrics
No merged PRs in 30d

Description

The rails upgraded already does this kind of "mirgation" with strong params, it would be nice If we can add this other "migration" for going from `Rails 4.2` Rails `5-0`

```
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
```

And then update all of your models to inherit from ApplicationRecord instead of ActiveRecord::Base. The only class that inherits from ActiveRecord::Base will be ApplicationRecord.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.