Class/Subclass and has_many belongs_to

Hi:

I would appreciate some hint. I can’t modify Class A1 but I can subclass
it so I wonder how can I get access to its belongs_to and has_many i.e.

Class A1 < ActiveRecord::Base
belongs_to : B1
belongs_to : C1
has_many :D1

end

Class myClass < ActiveRecord::A1
end

The above doesn’t work… Well it doesn’t do the insert …

MyClass and A1 table are exactly the same. Any suggestions?

Regards.

Try to write the second class as

Class myClass < A1
end

Class A1 It is not in module ActiveRecord, is it?