create migration and table join