I ran $ rails g model Model
and Rails generated two models as follow:
model.rb:
class Event < ApplicationRecord
end
and
application_record.rb:
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
But I was expecting
model.rb:
class Model < ActiveRecord::Base
end
So I came here to find out why. Then I saw this
Why Rails 5 uses ApplicationRecord instead of ActiveRecord::Base?
which means it was because I was using Rails version 5.
I deleted application_record.rb
and adjusted model.rb
to what am used to:
class Model < ActiveRecord::Base
end
But then am wondering if this has any implication on any other parts of my application that I don't know of know? This is an application I am building and many more features to still add in future.