If available, add ActiveRecord references for join tables