Simulate multi-table inheritance for activerecord models