I need to create a lot of new db tables during application lifecycle.
Like 1000 tables, each holding data from a specific device, collecting
data in real time. Each table may have different columns number, e.g.
datetime, temperature, pressure
and another will be:
datetime, voltage, current, power, resistance.
Can anybody advice how to best achive it, to make good use of Rails
framework capabilities, e.g. to use @device_table_name.temperature etc.
in templates? One possibility I am trying now is Class.new(superclass)
but maybe there are proven better approaches?
I didn’t tell that I need to create these new classes from web
interface, so that regular user could add new devices to the solution