Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate migration of ActiveRecord::Base to ApplicationRecord #20

Open
bronzdoc opened this issue Mar 5, 2021 · 0 comments
Open

Automate migration of ActiveRecord::Base to ApplicationRecord #20

bronzdoc opened this issue Mar 5, 2021 · 0 comments
Assignees

Comments

@bronzdoc
Copy link
Contributor

bronzdoc commented Mar 5, 2021

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.

@arielj arielj removed their assignment Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants