added getTableAlias to ActiveRecord