Removing an association from a derived class

I am using single table inheritance.

class User < ActiveRecord::Base
has_many :abc

class Student < User


The student class should not inherit the has_many :abc relationship.
How can we override it? Is there a way to remove an association in the
derived class?


Hi Pankaj,

has_many creates quite a few other methods and you could remove them
all but
the usual and easiest way is to ignore and not to use them.
Or, of course, change the design of your models.

ciao, tom