created associations and migrations