I am following the RailsTutorial and have been creating a Users model with appropriate attrs and validations. I\'ve run into this error and cannot see where the problem is.
Create a new file called app/models/application_record.rb with the following contents:
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
Explanation: When generating a new Rails 5+ project the application_record.rb file will be created automatically, but if using a project that was generated on an earlier version and upgraded to 5+ you need to create this file yourself.