I used “type” as a column in “rails generate model” there was no error.
I did a rake db:migrate again no problem.
I created the values using console again no problem.
I did a show function in users contoller then rails threw up the error.
should it not give this error right at the time of generate
model or db:migrate or atleast create.
ActiveRecord::SubclassNotFound in UsersController#show
The single-table inheritance mechanism failed to locate the subclass:
‘student’. This error is raised because the column ‘type’ is reserved
storing the class in case of inheritance. Please rename this column if
you didn’t intend it to be used for storing the inheritance class or
User.inheritance_column to use another column for that information.