generates migrations for table relationships