Skip to content

Automate migration of ActiveRecord::Base to ApplicationRecord #20

Description

@bronzdoc

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions