vendredi 2 octobre 2015

Rails - adding new field to inherting class

I have Student model, inheriting User model

class Student < User

if I add new field to Student model, its not showing up. All I see is replica of User model fields in Student model.

Student should have User fields as well as additional fields of its own.
how do I achieve this?

Aucun commentaire:

Enregistrer un commentaire