I want to know how you can solve this with ruby on rails:
there is a core module which provides a class BasePlugin
.
Optional plugins inherits (single table inheritance) from this base class.
Example: The FooPlugin
from fooplugin module is a external, optional module (provided by a third party).
Since STI is used the migrations for FooPlugin
need to live in the fooplugin module.
Result: BasePlugin does not know its whole table, since optional external modules add extra columns.
I am new to ruby on rails, but have developed database based applications in different languages for years.
Question:
Is the above usage of STI possible with ruby on rails?