What does :_type_disabled at inheritance_column mean?

38 Views Asked by At

I just came across with such a line in some model in Rails:

self.inheritance_column = :_type_disabled

What does it do?

1

There are 1 best solutions below

0
Karol Selak On

And I realised what's the answer during writing the question. It disables single table inheritance, what practically means that Rails won't assume that I have a special type field in my model and my eventual inheritation will have consequences only on code level, not in the database.