migrations for 3 tables but joint not done yet