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.
Turns out I had by mistake checked out from the brand where the migrations and models were created, back into master branch where these migrations and models were not present. Without those models present neither was the application_record.rb file thus the error of uninitialized constant ApplicationRecord
.