ActiveRecord which automatically adds STAT relations for each HAS_MANY and HAS_ONE